[mapserver-users] [SOLVED] About the WFS 2.0 stored query example

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Thu Dec 22 00:44:22 PST 2016


Found it!

There was no linefeed [LF] after the last row of my XML file.

I found discussion that learned me that LF after each line, including the terminating one is compulsory in POSIX http://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline. Is it is required in XML as well?

-Jukka Rahkonen-





Lähettäjä: Rahkonen Jukka (MML)
Lähetetty: 22. joulukuuta 2016 0:17
Vastaanottaja: mapserver-users at lists.osgeo.org
Kopio: Even Rouault (even.rouault at spatialys.com) <even.rouault at spatialys.com>
Aihe: Re: [mapserver-users] About the WFS 2.0 stored query example

Attached, created with Notepad++, UTF-8 without BOM, unix style end-of-lines. It does not look bad to me but perhaps there are some odd characters.

-Jukka Rahkonen-



Lähettäjä: Even Rouault [mailto:even.rouault at spatialys.com]
Lähetetty: 21. joulukuuta 2016 18:48
Vastaanottaja: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Kopio: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi<mailto:jukka.rahkonen at maanmittauslaitos.fi>>; Jeff McKenna <jmckenna at gatewaygeomatics.com<mailto:jmckenna at gatewaygeomatics.com>>
Aihe: Re: [mapserver-users] About the WFS 2.0 stored query example


On mercredi 21 décembre 2016 12:50:28 CET Rahkonen Jukka (MML) wrote:

> Hi,

>

> Håvard already made a doc issue, but I fear now that it is not only doc

> issue. When I tested my improved XML file I had also the inline stored

> query description active in the mapfile. I haven't had success yet with

> reading the description from file. However, this workflow works for me:

> - prepare the XML definition

> - remove white space and line feeds

> - escape all double quotes with backslash

> - copy the string into wfs storedquery inlinedef

>

> I was testing on Linux, Mapserver 7.0.3.



Jukka,



I suspect an issue with the text editor you used. The <?xml version="1.0" encoding="UTF-8"?> prolog line

is not needed if your XML is valid and UTF-8 encoded (it is the XML default encoding). And in the msautotest suite,

https://github.com/mapserver/mapserver/blob/branch-7-0/msautotest/wxs/data/wfs_200_allgeoms_filestoredquery.xml , there's no

such line.



Even



>

> -Jukka Rahkonen-

>

>

>

> Jeff McKenna wrote:

> Re: [mapserver-users] About the WFS 2.0 stored query example

>

> On 2016-12-21 6:36 AM, Rahkonen Jukka (MML) wrote:

>

> >

> >

> >

> >

> > It was not self-evident for me. Perhaps the examples in

> > http://mapserver.org/ogc/wfs_server.html#stored-queries-wfs-2-0 could

> > have this edit for making them more copy-paste ready.

> >

> >

> >

>

>

> Please file your documentation enhancements at

> https://github.com/mapserver/docs/issues Thank you.

> Wishing everyone a merry Christmas :)

>

> -jeff

>

>

> --

> Jeff McKenna

> MapServer Consulting and Training Services http://www.gatewaygeomatics.com/

>

>

>

>

> _______________________________________________

> mapserver-users mailing list

> mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>

> http://lists.osgeo.org/mailman/listinfo/mapserver-users

> _______________________________________________

> mapserver-users mailing list

> mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>

> http://lists.osgeo.org/mailman/listinfo/mapserver-users





--

Spatialys - Geospatial professional services

http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20161222/b5480c2f/attachment-0001.html>


More information about the mapserver-users mailing list