[Zoo-discuss] support CDATA

pablo zader pzader at gmail.com
Sun Aug 16 19:20:39 PDT 2015


Hi Gerald

Thanks for your example this works in my installation, (revision 513)

Attached two examples: one that works and the other does not. The
difference in the two is that one has the CDATA object and the other not.
Maybe you can run?

Thanks

Pablo





2015-08-16 21:15 GMT-03:00 Fenoy Gerald <gerald.fenoy at geolabs.fr>:

> Hi Pablo,
> this should work properly.
>
> Please try with the example included in the files attached to this email:
>  * tmp.xml is the request to send to your server
>  * test.py is a python file installed in the vector-tools sub-directory of
> the location of your ZOO-Kernel
>  * demo.zcfg which is the required ZCFG file (in the same vector-tools
> sub-directory)
>
> You can run the example by running the following command:
>
> curl -H "Content-Type: text/xml" -d @tmp.xml
> http://localhost/cgi-bin/zoo_loader.cgi
>
> It should work properly, in other case please, please give me information
> about the ZOO-Kernel version you use.
>
> Hope this helps.
> Best regards,
>
>
>
>
> > Le 17 août 2015 à 01:48, pablo zader <pzader at gmail.com> a écrit :
> >
> > Hi list
> >
> > Why ZOO doesn't support CDATA element  inside Complex Data?
> > For example:
> >
> >  <wps:ComplexData
> mimeType="application/json"><![CDATA[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[-7100324.4671436,-3204058.4836596],[-6400772.7843751,-3194274.5440405],[-6405664.7541847,-3600308.0382348],[-7320463.1085743,-3732391.2230932],[-7393842.6557179,-3282330.0006128],[-7100324.4671436,-3204058.4836596]]]},"crs":{"type":"name","properties":{"name":"EPSG:102113"}}}]]></wps:ComplexData>
> >
> > Removing CDATA, zoo works well.
> >
> >  <wps:ComplexData
> mimeType="application/json">{"type":"Polygon","coordinates":[[[-7100324.4671436,-3204058.4836596],[-6400772.7843751,-3194274.5440405],[-6405664.7541847,-3600308.0382348],[-7320463.1085743,-3732391.2230932],[-7393842.6557179,-3282330.0006128],[-7100324.4671436,-3204058.4836596]]]}></wps:ComplexData>
> >
> > Thanks
> > Pablo
> >
> >
> > _______________________________________________
> > Zoo-discuss mailing list
> > Zoo-discuss at lists.osgeo.org
> > http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss
>
>
>
> Gérald Fenoy
> http://wiki.osgeo.org/wiki/User:Djay
>
>
>


--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20150816/7eab66a0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.zip
Type: application/zip
Size: 3223 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20150816/7eab66a0/attachment.zip>


More information about the Zoo-discuss mailing list