Closed 2803media closed 7 months ago
The easier way was to use ogr2ogr
ogr2ogr -lco GEOMETRY=AS_XY \
-f CSV \
-oo X_POSSIBLE_NAMES=LAMBERT_X \
-oo Y_POSSIBLE_NAMES=LAMBERT_Y \
-oo KEEP_GEOM_COLUMNS=NO \
-t_srs EPSG:4326 \
-s_srs EPSG:2154 bpe2.csv bpe.csv
In mapshaper, you would have to convert the csv data to points before projecting, like this:
mapshaper bpe.csv \
-points x=LAMBERT_X y=LAMBERT_Y \
-proj init=EPSG:2154 crs=EPSG:4326 \
-each 'LAT=this.y, LON=this.x' \
-o bpe2.csv
A fastest way with mapshaper!!!
thanks for this input Matthew
Hi
I have a csv file like that:
As you see the EPSG is Lambert and I want to convert it to wgs84. So do I need to create a JSON, add geometry datas and convert the proj to wgs84 or is there a quicker way to do that? The end format will be CSV so if I can skip the geojson it's better...
Thanks