Hi,

Is there a way to configure a WFS so when it is requested a application/json, 
and one of the attributes happens to be a string array, it returns for that 
attribute a json array and not a SQL array as a string ?
Let me expand. Now I get something like this:
"attribute": "{value1, value2}"
I'd prefer this:
"attribute": ["value1", "value2"]

These are extracts from my mapfile that handles the json output:

    OUTPUTFORMAT
        NAME "application/json"
        DRIVER "OGR/GEOJSON"
        MIMETYPE "application/json"
        FORMATOPTION "FORM=SIMPLE"
        FORMATOPTION "STORAGE=memory"
        FORMATOPTION "FILENAME=result.json"
    END

    WEB
        METADATA
      ... other details
            "wfs_getfeature_formatlist" "OGRGML,application/json"
        END
    END

Kind regards

Carlos Padrón, MRes | Geomatics Team Lead



D: 01865 664120  W: www.gigaclear.com<http://www.gigaclear.com/>





[signature_261337870]

Gigaclear ltd, Building 1, Wyndyke Furlong, Abingdon, Oxfordshire, OX14 1UQ

Gigaclear plc is registered in England and Wales with company number 07476617


_______________________________________________
MapServer-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to