njam / citygml-to-3dtiles

Convert from CityGML to Cesium 3D Tiles.
Apache License 2.0
160 stars 41 forks source link

Unknown Projection Name on CityGML File #40

Open MdRanaSarkar opened 11 months ago

MdRanaSarkar commented 11 months ago

Converting... Reading CityGML file 1/1... Found 711 city objects.

Unknown projection name: "EPSG:28992". See https://github.com/njam/citygml-to-3dtiles#option-srsprojections for details.

For EPSG:28992 , it couldn't create the tiles.

Can anyone help how can I project with this epsg ?

PieterT2000 commented 7 months ago

Have you added the Proj4 definition for EPSG:28992 to the srsProjections object? If not, can you try if the following works:


...
let converter = new Convert({
   srsProjections: {
      "EPSG:28992": "+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +towgs84=565.2369,50.0087,465.658,-0.406857330322398,0.350732676542563,-1.8703473836068,4.0812 +no_defs"
   }
}
...