wrong coordinates for wfs MultiLineString from geoserver

المشرف العام

Administrator
طاقم الإدارة
I have a leaflet application and I want to display some WFS layers coming from Geoserver.

In Geoserver, I declare my layer with a "native SRC" EPSG:2154, and with a "declared SRC" EPSG:4326 and set "SRS handling" to "Reproject native to declared" to display it in leaflet.

Now, if I try to display the wfs with leaflet, it renders something weird. I have the first point of the line at the right coordinates, but then, lines are going to wrong coordinates, thousands kilometers away from they should be.

Here is a part of the jsonp :

parseResponse({"type":"FeatureCollection","totalFeatures":1079,"features":[{"type":"Feature","id":"conduites_eu_l93.1","geometry":{"type":"MultiLineString","coordinates":[[[1.5613439688423163,49.03869313600971,0],[-1.5777641664737554,-2.180153996047118,6883035.044373245]]]},"geometry_name":"geom","properties":{"code_insee":78057,"diametre":200,"type":"IND","longueur_m":67.88,"bbox":[-1.5777641664737554,-2.180153996047118,1.5613439688423163,49.03869313600971]}},{"type":"Feature","id":"conduites_eu_l93.2","geometry":{"type":"MultiLineString","coordinates":[[[1.5614998405017906,49.039338391376226,0],[-1.5777936149688272,-2.1796435609058618,6883111.061549901]]]} As you can see, the first coordinates are rights, but the second point is wrong.

Is there a problem reprojecting with geoserver ? I tried not to reproject, but I still have the same problem with other wrong coordinates.



أكثر...
 
أعلى