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

Store longitude and latitude in degrees instead of radians #387

Open
lilleyse opened this issue Oct 10, 2019 · 2 comments
Open

Store longitude and latitude in degrees instead of radians #387

lilleyse opened this issue Oct 10, 2019 · 2 comments

Comments

@lilleyse
Copy link
Contributor

For the next version of 3D Tiles we should consider using degrees instead of radians for longitude and latitude values. Right now this only applies to the region bounding volume. Its CRS is EPSG:4979, which is in degrees, but its values are stored in radians. It will be easier for 3D Tiles to interoperate with other GIS formats if we make the switch to degrees.

Current

"boundingVolume": {
  "region": [
    -1.5707963267948966,
    -3.1415926535897932,
    1.5707963267948966,
    3.1415926535897932,
    -11.89207010413975,
    547.7591827297583
  ]
}

Proposed

"boundingVolume": {
  "region": [
    -90,
    -180,
    90,
    180,
    -11.89207010413975,
    547.7591827297583
  ]
},
@karlengstrom
Copy link

Yes!

Perhaps,

90, -180
-90, 180

@lilleyse
Copy link
Contributor Author

See similar discussion in EXT_geopose_basic_euler

  • Radians is consistent with 3D Tiles and glTF units: All angles are in radians
  • Degrees is consistent with EPSG:4979

Which consistency matters more? While keeping in mind that switching to degrees would be a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants