On Fri, Feb 11, 2011 at 12:07 AM, Roger Bedell <[email protected]> wrote:
> Morning everyone,
>
> This is still an issue.
>
> I've narrowed this down some more. It is quite easy to reproduce using the
> latest nightly build, standard data, 32 bits (or 64)
>
> 1) Set up ogr2ogr using these instructions:
> http://docs.geoserver.org/latest/en/user/extensions/ogr.html
>
> 2) Create an OGR2OGR.XML file with just a zipped and unzipped KML in the
> default data directory that looks like this:
>
> <OgrConfiguration>
>   <ogr2ogrLocation>C:\Program Files
> (x86)\FWTools2.4.7\bin\ogr2ogr.exe</ogr2ogrLocation>
>   <gdalData>C:\Program Files (x86)\FWTools2.4.7\data</gdalData>
>   <formats>
>     <Format>
>       <ogrFormat>KML</ogrFormat>
>       <formatName>OGR-KML-ZIP</formatName>
>       <fileExtension>.zip</fileExtension>
>       <mimeType>application/zip</mimeType>
>     </Format>
>     <Format>
>       <ogrFormat>KML</ogrFormat>
>       <formatName>OGR-KML</formatName>
>       <fileExtension>.kml</fileExtension>
>       <singleFile>true</singleFile>
>       <mimeType>application/vnd.google-earth.kml</mimeType>
>     </Format>
>   </formats>
> </OgrConfiguration>
>
> 3) Start GeoServer. From the Demo Requests - wfs - select the
> "WFS_getFeatureBetween-1.1.xml" sample request.
>
> 4) Modify it slightly to read
>
> <wfs:GetFeature service="WFS" outputFormat="OGR-KML-ZIP" version="1.1.0"
>
> The resulting zip file should be corrupt.
> If you try outputFormat="OGR-KML", it works fine.
>
> Note that the usual outputFormat="shape-zip" also works fine, the zip
> problem just seems to be inside the OGR2OGR extension.

Reproduced and fixed for 2.1-RC2: http://jira.codehaus.org/browse/GEOS-4374

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

-------------------------------------------------------

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to