0

We are using GeoServer 2.11.2 and Mapbox.

We have many layers that do not follow the rule of the right hand and we need to serve them to other application. The problem is that we have to show in a map with [Mapbox][1] using the function addLayer and this function only shows layers that follow RHR.

Is there any possibility of serving an RHR directly with GeoServer from a no RHR layer? Or is there other function in Mapbox that allow showing these kinds of layers?

I'm using GeoJSON as output format

  • 2
    I believe that you are using GeoJSON as output format. GeoServer is using the deprecated 2008 version of GeoJSON geojson.org/geojson-spec.html, perhaps because the new specification dropped also support for all other coordinate systems than EPSG:4326, or in lack of developer time. If Mapbox libraries do not support old style polygons the only alternative might be to use GML output. But does Mapbox support GML? – user30184 Nov 27 '18 at 8:56
  • 2
    as @user30184 suggests GML is a standard and well supported output format, otherwise you will need to fix your input files. Or you can contribute or sponsor a fix to the GeoTools/GeoServer code to enforce the RHR on GeoJSON. – Ian Turton Nov 27 '18 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.