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
1 task done
SymbolixAU opened this issue Aug 14, 2018 · 1 comment
Closed
1 task done

elevation #28

SymbolixAU opened this issue Aug 14, 2018 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@SymbolixAU
Copy link
Collaborator

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 self-assigned this Sep 17, 2018
@SymbolixAU SymbolixAU added this to the v1.2 milestone Oct 10, 2018
@SymbolixAU SymbolixAU added the enhancement New feature or request label Oct 12, 2018
@SymbolixAU
Copy link
Collaborator Author

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 removed their assignment Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

0 participants