Skip to content

Question: how to handle 3d coordinates #714

@jliebrand

Description

@jliebrand

Quick question: I have GeoJSON data which is formatted slightly oddly (and I'm not even sure it's valid??). Example:

{
  "type": "Feature",
  "properties": {},
  "geometry": {
    "type": "MultiPoint",
    "coordinates": [
      [4.2986051, 51.1254047, -2.6],
      [4.3025707, 51.1202334, -3.4],
      [4.305517, 51.1223118, 7.6],
      [4.3011774, 51.1241362, 9.7],
      [4.3047621, 51.1253548, 3.0],
      [4.3076292, 51.126133, 3.4],
      [4.3138017, 51.1268111, 8.7],
      [4.3118194, 51.1274344, 4.1],
      [4.3171699, 51.1287236, 6.8],
      [4.3198019, 51.1290972, 12.1]
    ]
  }
}

Basically the third digit is the elevation. Can tippecanoe handle this, and if not, how should I reformat it (short of individual points all with elevation set in properties??)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions