This sample shows you how to geolocate an OGC 3D Tiles dataset on the globe. The prerequisite for this is that the sample dataset is not already georeferenced. In the case of an OGC 3D Tiles, this means that its metadata does not use the Region
element, but instead a Box
without a root level transform.
When an OGC 3D Tiles dataset is not georeferenced, its reference will be "LUCIAD:XYZ", which is a cartesian reference that does not contain geospatial information. The "LUCIAD:XYZ" reference does however say something about its axes: All axes are expressed in meters, and are pointing in specific directions:
GeoLocateController
Internally, the GeoLocateController
creates an Affine3DTransformation
, which is a transformation that can convert the "LUCIAD:XYZ" reference into a geospatial reference "EPSG:4978", an earth-centered, earth-fixed geocentric reference.
There are two datasets you can choose from as background data in this sample.
https://sampleservices.luciad.com/
.&googleAPIKey=...YOUR_API_KEY...
The non-geospatial dataset of the buildings were created by Somnit and ztrztr on http://www.sketchfab.com
and also hosted by our LuciadFusion server on https://sampleservices.luciad.com/
. You can use these services only for simple tests and demonstrations. You should not rely on either of them in any way.