kartena / Proj4Leaflet

Smooth Proj4js integration with Leaflet.
http://kartena.github.io/Proj4Leaflet/
BSD 2-Clause "Simplified" License
587 stars 172 forks source link

How i can convert geoJSON to different projection? #174

Closed PawelGIX closed 4 years ago

PawelGIX commented 4 years ago

Is there any example? I'm looking for something like projection(fromProjection[, toProjection, geoJSON])

perliedman commented 4 years ago

Is this for display on a Leaflet map? The you should use L.Proj.GeoJSON.

Otherwise, if you are looking to actually reprojecting the GeoJSON to another GeoJSON object with reprojected coordinates, please have a look at reproject