wrong map projection

0

I am trying to insert dots 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 wrong and I know that this has to do with the projection but I already tried to change to another type and it does not stay right in the same

1-Layer on Geoserver with EPSG Srid: 4326

2-InsertionintothePostgresdatabase

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

    
asked by anonymous 10.01.2018 / 19:03

1 answer

0

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

Try something like this:

$coord = $_POST['stringCoord']['longitude'].' '.$_POST['stringCoord']['latitude'];
    
13.09.2018 / 22:57