Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elevation #28

Closed
SymbolixAU opened this issue Aug 14, 2018 · 1 comment
Closed

elevation #28

SymbolixAU opened this issue Aug 14, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@SymbolixAU
Copy link
Owner

@SymbolixAU SymbolixAU commented Aug 14, 2018

This needs to be handled.

Example

geojson <- '{
  "type": "FeatureCollection",
  "features": [{
    "type": "Feature",
    "geometry": {
      "type": "Point",
      "coordinates": [102.0, 0.5, 100]
    },
    "properties": {
      "prop0": "value0"
    }
  }, {
    "type": "Feature",
    "geometry": {
      "type": "LineString",
      "coordinates": [
        [102.0, 0.0],
        [103.0, 1.0],
        [104.0, 0.0],
        [105.0, 1.0]
        ]
    },
    "properties": {
      "prop0": "value0",
      "prop1": 0.0
    }
  }, {
    "type": "Feature",
    "geometry": {
      "type": "Polygon",
      "coordinates": [
        [
          [100.0, 0.0],
          [101.0, 0.0],
          [101.0, 1.0],
          [100.0, 1.0],
          [100.0, 0.0]
          ]
        ]
    },
    "properties": {
      "prop0": "value0",
      "prop1": {
        "this": "that"
      }
    }
  }]
  }'

TODO

  • geojson_validate.cpp - validate_points() will need to accept 2 <= x <= 4 sizes
@SymbolixAU SymbolixAU mentioned this issue Aug 14, 2018
21 of 21 tasks complete
@SymbolixAU SymbolixAU self-assigned this Sep 17, 2018
@SymbolixAU SymbolixAU added this to the v1.2 milestone Oct 10, 2018
@SymbolixAU
Copy link
Owner Author

@SymbolixAU SymbolixAU commented Oct 13, 2018

Now works (currently in jsonify branch)

sf <- geojsonsf::geojson_sf( geojson )

sf
# Simple feature collection with 3 features and 2 fields
# geometry type:  GEOMETRY
# dimension:      XYZ
# bbox:           xmin: 100 ymin: 0 xmax: 105 ymax: 1
# epsg (SRID):    4326
# proj4string:    +proj=longlat +datum=WGS84 +no_defs
#                         geometry  prop0           prop1
# 1          POINT Z (102 0.5 100) value0            <NA>
# 2 LINESTRING (102 0, 103 1, 1... value0               0
# 3 POLYGON ((100 0, 101 0, 101... value0 {"this":"that"}
@SymbolixAU SymbolixAU closed this Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.