wrong projection on the map

Asked

Viewed 61 times

0

I’m trying to insert points into a layer using leaflet and save those points in a Postgres (Postgis) database. With the geoserver I can see the layer but the points appear to me all badly and I know this has to do with the projection but I tried to change to another type and it is not right in the same

1-Layer on Geoserver with Srid EPSG:4326 inserir a descrição da imagem aqui

2-Insertion in the Postgres database inserir a descrição da imagem aqui

If I insert for example a point near England, will appear to me in South Africa

  • Tried with WGS84 Designed (EPSG 3857)? The EPSG: 4326 is for use in geoid (type Google Earth). The EPSG 3857 would be for Google Maps (which is also the same system as Leaflet) - you can do the projection mathematically if you only have the values at 4326

1 answer

0

Hello, I believe the latitude and longitude values are changed.

Try something like this:

$coord = $_POST['stringCoord']['longitude'].' '.$_POST['stringCoord']['latitude'];

Browser other questions tagged

You are not signed in. Login or sign up in order to post.