[Zoo-discuss] support CDATA
Fenoy Gerald
gerald.fenoy at geolabs.fr
Sun Aug 16 17:15:10 PDT 2015
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python-script
Size: 268 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20150817/c4e33cef/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo.zcfg
Type: application/octet-stream
Size: 1231 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20150817/c4e33cef/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp.xml
Type: application/xml
Size: 1142 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20150817/c4e33cef/attachment.xml>
-------------- next part --------------
> 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
More information about the Zoo-discuss
mailing list