tests/testthat/_snaps/points.md

ms_points works with defaults

{
  "type": "character",
  "attributes": {
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["geojson", "json"]
    }
  },
  "value": ["{\"type\":\"FeatureCollection\", \"features\": [\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-78.41545627388591,-53.95000746272238]},\"properties\":{\"x\":-78,\"y\":-53}},\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-70.86874806481023,65.19505422895192]},\"properties\":{\"x\":-71,\"y\":65}},\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[135.65518268439706,63.105177820112175]},\"properties\":{\"x\":135,\"y\":65}}\n]}"]
}
{
  "type": "character",
  "attributes": {
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["geojson", "json"]
    }
  },
  "value": ["{\"type\":\"FeatureCollection\", \"features\": [\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-78.41545627388591,-53.95000746272238]},\"properties\":{\"x\":-78,\"y\":-53}},\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-70.86874806481023,65.19505422895192]},\"properties\":{\"x\":-71,\"y\":65}},\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[135.65518268439706,63.105177820112175]},\"properties\":{\"x\":135,\"y\":65}}\n]}"]
}

ms_points works with location=centroid

{
  "type": "character",
  "attributes": {
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["geojson", "json"]
    }
  },
  "value": ["{\"type\":\"FeatureCollection\", \"features\": [\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-78.41545627388591,-53.95000746272238]},\"properties\":{\"x\":-78,\"y\":-53}},\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-70.86874806481023,65.19505422895192]},\"properties\":{\"x\":-71,\"y\":65}},\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[135.65518268439706,63.105177820112175]},\"properties\":{\"x\":135,\"y\":65}}\n]}"]
}

ms_points works with location=inner

{
  "type": "character",
  "attributes": {
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["geojson", "json"]
    }
  },
  "value": ["{\"type\":\"FeatureCollection\", \"features\": [\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-77.94495627388591,-54.35054796472685]},\"properties\":{\"x\":-78,\"y\":-53}},\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-70.77922425528642,65.38990758263694]},\"properties\":{\"x\":-71,\"y\":65}},\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[135.73366753288192,63.20605469122094]},\"properties\":{\"x\":135,\"y\":65}}\n]}"]
}

ms_points works with x and y

{
  "type": "character",
  "attributes": {
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["geojson", "json"]
    }
  },
  "value": ["{\"type\":\"FeatureCollection\", \"features\": [\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-78,-53]},\"properties\":{\"x\":-78,\"y\":-53}},\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[-71,65]},\"properties\":{\"x\":-71,\"y\":65}},\n{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[135,65]},\"properties\":{\"x\":135,\"y\":65}}\n]}"]
}


ateucher/rmapshaper documentation built on Nov. 2, 2023, 4:23 p.m.