[Zoo-discuss] support CDATA
pablo zader
pzader at gmail.com
Sun Aug 16 21:56:17 PDT 2015
Update
I detected the problem :
the function Buffer in ogr_ws_service_provider.py not working, raise
Segmentation Fault:
>>> obj =
'{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[-7026977.4654534,-3940288.5938786],[-7026952.3845535,-3940303.2244036],[-7026997.4704569,-3940307.7031357],[-7027006.7265033,-3940284.7123108],[-7026998.9633676,-3940276.0534287],[-7026977.4654534,-3940288.5938786]]]},"crs":{"type":"name","properties":{"name":"EPSG:102113"}}}'
>>> geom=osgeo.ogr.CreateGeometryFromJson(obj) <---here problem
Segmentation Fault (`core' genered)
But if I change the definción of obj it works well:
>> obj =
'{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[-7026977.4654534,-3940288.5938786],[-7026952.3845535,-3940303.2244036],[-7026997.4704569,-3940307.7031357],[-7027006.7265033,-3940284.7123108],[-7026998.9633676,-3940276.0534287],[-7026977.4654534,-3940288.5938786]]]}
I will try to fix this.
Thanks
2015-08-16 23:20 GMT-03:00 pablo zader <pzader at gmail.com>:
> 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
>>
>>
>>
>
>
> --
>
>
--
*Pablo J. Zader*
*Lic. en Cs. de la Computación*
*pablo.zader at gmail.com <pablo.zader at gmail.com>*
*"Los Grandes Hombres hablan sobre ideas... Los Hombres Promedio hablan
sobre cosas... Los Hombres Pequeños hablan.. de otros Hombres.*
*del libro Matemática estas ahi? A. Paenza "*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20150817/8ad75d3b/attachment-0001.html>
More information about the Zoo-discuss
mailing list