mfbonfigli / gocesiumtiler

A Cesium.js point cloud 3D tiles generator from LAS files written in Golang
GNU Lesser General Public License v3.0
169 stars 36 forks source link

What can I do on "epsg code not found" error? #26

Closed kochizufan closed 1 year ago

kochizufan commented 2 years ago

Hi I ran geocesiumtiler on Windows, like this:

F:\challenge>F:\challenge\gocesiumtiler.exe -i F:\challenge -o F:\challenge\3dtiles -e 7415 -g -f -r

                           _                 _   _ _
  __ _  ___   ___ ___  ___(_)_   _ _ __ ___ | |_(_) | ___ _ __
 / _  |/ _ \ / __/ _ \/ __| | | | | '_   _ \| __| | |/ _ \ '__|
| (_| | (_) | (_|  __/\__ \ | |_| | | | | | | |_| | |  __/ |
 \__, |\___/ \___\___||___/_|\__,_|_| |_| |_|\__|_|_|\___|_|
  __| | A Cesium Point Cloud tile generator written in golang
 |___/  Copyright 2022 - Massimo Federico Bonfigli

Preparing list of files to process...
Processing file 1/2
> reading data from las file... C_37EZ1.LAS
2022/04/26 11:34:08 epsg code not found
2022/04/26 11:34:08 epsg code not found
2022/04/26 11:34:08 epsg code not found

It said "epsg code not found". How can I define new CRS? Is it OK to write proj text just after -e switch?

mfbonfigli commented 2 years ago

Probably you can just add a new definition to this file https://github.com/mfbonfigli/gocesiumtiler/blob/master/assets/epsg_projections.txt using a proj4 string. Please let me know if this worked

mfbonfigli commented 2 years ago

Basically in your case you can try to add a line to that file like:

EPSG:7415   EPSG:7415: Amersfoort / RD New + NAP height +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +towgs84=565.417,50.3319,465.552,-0.398957,0.343988,-1.8774,4.0725 +units=m +vunits=m +no_defs 

and see if it works.

If it does please consider submitting a Pull Request or at least letting me know :)

mfbonfigli commented 1 year ago

Closing as it's a stale issue that has already been answered.