[mapserver-users] RE: Corrupted zipped shapefiles from WFS
Keith.Moss at landgate.wa.gov.au
Thu Nov 3 00:02:34 EDT 2011
Do you still have any of those zip files that you created? We'd be keen to take a look at them and see how they compare to the ones that we're generating.
I've attached a test case using an inline feature (as Andreas suggested) - is there any chance you might be able to try it on your Windows box and send us the resulting zip file?
Satellite Remote Sensing Services
65 Brockway Road, FLOREAT WA 6014
PO Box 741 Wembley WA 6913
Ph. (08) 9387 0332 | Fx. (08) 9383 7142
keith.moss at landgate.wa.gov.au <mailto:keith.moss at landgate.wa.gov.au>
From: Jeff McKenna [via OSGeo.org] [mailto:ml-node+s1803224n6956228h71 at n2.nabble.com]
Sent: Thu 03/11/2011 01:43
To: Keith Moss
Subject: Re: Corrupted zipped shapefiles from WFS
I know for a similar issue I created a small test case posted to a
ticket last week
(http://trac.osgeo.org/mapserver/ticket/3751#comment:21) and in that
case I was able to output a valid zip archive of a shapefile through a
WFS GetFeature request on Windows. If I remember correctly I had to use
MapServer trunk to get this to work properly.
Honestly I didn't dive far into if the zips were valid or not (come to
think of it, I was always using 7-zip to open them as well, which worked).
MapServer Consulting and Training Services
On 11-11-02 3:50 AM, Keith Moss wrote:
> Hi list,
> We're having a bit of an issue with the zipped shapefiles we're getting back
> from WFS GetFeature requests. Winzip claims that they're all corrupted* but,
> oddly, 7zip can open and extract the perfectly valid shapefile without
> issue. We tried to unzip the file with PHP's inbuilt ZIPArchive class, but
> that also had issues - it could read the files in there but would extract
> 0KB length files.
> Other output formats - CSV, GML, etc - work without issue. We've reproduced
> the issue on two separate Windows-based servers (2008& 2003).
> We've noticed in the corrupted zip files that the file starts with:
> "Content-Disposition: attachment; filename=result.zip
> Content-Type: application/zip" (when we open it in Notepad). We've tried
> removing this, but it didn't help.
> Can anyone on the list, or one of the developers, shed any light on the
> I've attached a simple test case with an example shapefile, would someone be
> able to try it on their setup for us please?
> We're using PHP MapScript with MapServer 6.0.1 (MS4W 3.0.3) / PHP 5.3.6.
> * The WinZip error: "error [<path>.zip]: start of central directory not
> found; Zip file corrupt."
mapserver-users mailing list
If you reply to this email, your message will be added to the discussion below:
To unsubscribe from Corrupted zipped shapefiles from WFS, click here <http://osgeo-org.1803224.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6954263&code=S2VpdGguTW9zc0BsYW5kZ2F0ZS53YS5nb3YuYXV8Njk1NDI2M3wtMTY4NjE0MzQxNQ==> .
This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged, in which case neither is intended to be waived or lost by mistaken delivery to you. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this e-mail in error, please notify the sender by return e-mail and delete the message and any attachments from your system. Unless specifically indicated, this e-mail does not constitute formal advice or commitment by the sender or the Western Australian Land Information Authority (Landgate). Information in this message not relating to the official business of Landgate shall be understood as neither given nor endorsed by it. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Landgate’s liability is limited to re-supplying affected attachments.
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Corrupted-zipped-shapefiles-from-WFS-tp6954263p6957858.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users