paulmach / orb

Types and utilities for working with 2d geometry in Golang
MIT License
910 stars 103 forks source link

GeoJSON : Elevation #60

Closed zdannar closed 3 years ago

zdannar commented 3 years ago

Hello Paul,

Orb is a fantastic library and thank you for all of your hard work. It appears that geoJson supports and optional field in the coordinates specifying an elevation. Are you planning on supporting this in the future?

Thanks again for the great library.

paulmach commented 3 years ago

Do you mean 3d coordates like [x, y, z]? If so, no, orb is 2d as the Point type is defined as [2]float64. You could fork this and make the change, or you could use https://github.com/paulmach/go.geojson if you're just interested in geojson encoding/decoding.

zdannar commented 3 years ago

Thanks for the clarification Paul. I will have to consider my options.