Re: [MapServer-users] 'application/json' is not a permitted output format for layer

2024-03-28 Thread Yves Jacolin via MapServer-users
I will test and will tell you. I was pretty sure to check such metadata
before :)

Thanks for your quick reply Mathias.

Y.

Le jeu. 28 mars 2024 à 09:40, mathias cunault  a
écrit :

> Hello,
> With your OUTPUTFORMAT configuration, if you want to use application/json
> in the URL of the WFS, verify that the wfs_getfeature_formatlist METADATA
> of your layer contains application/json.
> It is my configuration and it works fine. I hope it helps.
>
>
> Le jeu. 28 mars 2024 à 09:00, Yves Jacolin via MapServer-users <
> mapserver-users@lists.osgeo.org> a écrit :
>
>> Hello,
>>
>> I have a mapserver WFS service running for some time without any issue.
>> We upgraded to 7.6.5 and now a WFS request
>> with OUTPUTFORMAT=application/json; subtype=geojson; charset=utf-8 failed
>> with this message: msWFSGetFeature(): WFS server error. 'application/json'
>> is not a permitted output format for layer 'X', review
>> wfs_getfeature_formatlist setting.
>>
>> The mapfile looks like:
>>
>> OUTPUTFORMAT
>> NAME "geojson"
>> DRIVER "OGR/GEOJSON"
>> MIMETYPE "application/json; subtype=geojson; charset=utf-8"
>> FORMATOPTION "STORAGE=stream"
>> FORMATOPTION "FORM=SIMPLE"
>> EN
>>
>> If I use outputformat=geojson it works. Is it normal? Do you think that
>> Ican change the outputformat name to "application/json; subtype=geojson;
>> charset=utf-8"
>>
>> Thanks,
>>
>> Y.
>> --
>> [image: This is Yves Jacolin's card. Their email is
>> yves.jaco...@camptocamp.com. Their phone number is +33 6 18 75 42 21. Their
>> phone number is +33 4 58 48 20 43. Their phone number is +41 21 619 10 43.]
>> <https://hihello.me/p/c7a536d1-5177-4817-8924-ebb067e58d4f>
>> ___
>> MapServer-users mailing list
>> MapServer-users@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>

-- 
[image: This is Yves Jacolin's card. Their email is
yves.jaco...@camptocamp.com. Their phone number is +33 6 18 75 42 21. Their
phone number is +33 4 58 48 20 43. Their phone number is +41 21 619 10 43.]
<https://hihello.me/p/c7a536d1-5177-4817-8924-ebb067e58d4f>
___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[MapServer-users] 'application/json' is not a permitted output format for layer

2024-03-28 Thread Yves Jacolin via MapServer-users
Hello,

I have a mapserver WFS service running for some time without any issue. We
upgraded to 7.6.5 and now a WFS request with OUTPUTFORMAT=application/json;
subtype=geojson; charset=utf-8 failed with this message: msWFSGetFeature():
WFS server error. 'application/json' is not a permitted output format for
layer 'X', review wfs_getfeature_formatlist setting.

The mapfile looks like:

OUTPUTFORMAT
NAME "geojson"
DRIVER "OGR/GEOJSON"
MIMETYPE "application/json; subtype=geojson; charset=utf-8"
FORMATOPTION "STORAGE=stream"
FORMATOPTION "FORM=SIMPLE"
EN

If I use outputformat=geojson it works. Is it normal? Do you think that
Ican change the outputformat name to "application/json; subtype=geojson;
charset=utf-8"

Thanks,

Y.
-- 
[image: This is Yves Jacolin's card. Their email is
yves.jaco...@camptocamp.com. Their phone number is +33 6 18 75 42 21. Their
phone number is +33 4 58 48 20 43. Their phone number is +41 21 619 10 43.]

___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Basemap as merged and separate layers

2020-12-11 Thread Yves Jacolin via mapserver-users
Hello,

I think some part of your need can be done in MapServer, look at the
*wms_layer_group* layer metadata in
https://www.mapserver.org/ogc/wms_server.html. but all LAYERs will be
always shown in MapServer.

Y.

Le ven. 11 déc. 2020 à 15:55, Jesper Kempe via mapserver-users <
mapserver-users@lists.osgeo.org> a écrit :

> Hi
>
> I have a basemap in Mapserver 7.4.3 presented as a WMS-layer.
>
> As many maps it consists of landusage, roads, label and so on.
> Each of these "layers" or parts of the map consist of many  in the
> mapfile for different scales.
> For example land0, land1 and roads0, roads1 and so on. Much like
> https://mapserver.org/basemaps/index.html
>
> Currently all layers are part of "GROUP default" and map renders correctly
> when asking for LAYERS=default.
>
> Unfortunately all layers (land0,land1,roads0,road1...) are also show in
> the Capability.
>
> What I would like have is instead a response in the capability where there
> are layers for "the main map" and also a grouped layer for all "zoom
> layers" i.e. roads0,roads1 combined to a roads layer.
> For example the layers default, land and roads should be the only layers
> visible in the Capability and possible to render in a GetMap-request.
> A GetMap request for LAYERS=roads should show all the separate roads*
> layers only.
>
> Can this be done in Mapserver?
>
> Thanks,
> Jesper
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>


-- 
Yves Jacolin
Training and support manager - Team Manager
Camptocamp

Tel (France) : +33 4 58 48 20 43
Tel (Switzerland) : +41 21 619 10 43
Mob. : +33 6 18 75 42 21

email : yves.jaco...@camptocamp.com
http://www.camptocamp.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users