<META content="text/html; charset=UTF-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19154">
<DIV dir=ltr id=idOWAReplyText38907>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>Hi Jeff,</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>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.</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>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?</FONT></DIV>
<DIV dir=ltr><FONT size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT size=2 face=Arial>cheers</FONT></DIV>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial></FONT> </DIV></DIV>
<DIV dir=ltr id=idSignature72167>
<DIV RE>__________________________________ </DIV>
<DIV RE><FONT size=2 face="Courier New">Keith Moss</FONT></DIV>
<DIV RE><FONT size=2 face="Courier New">Satellite Remote Sensing Services</FONT></DIV>
<DIV RE><FONT size=2 face="Courier New">Operations</FONT></DIV>
<DIV RE><FONT size=2 face="Courier New">Landgate</FONT></DIV>
<DIV RE><FONT size=2 face="Courier New">65 Brockway Road, FLOREAT WA 6014</FONT></DIV>
<DIV RE><FONT size=2 face="Courier New">PO Box 741 Wembley WA 6913</FONT></DIV>
<DIV RE><FONT size=2 face="Courier New">Ph. (08) 9387 0332 | Fx. (08) 9383 7142</FONT></DIV>
<DIV RE><a href="/user/SendEmail.jtp?type=node&node=6957858&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a></DIV>
<DIV RE><A href="http://www.landgate.wa.gov.au/" target="_top" rel="nofollow" link="external"><FONT size=2 face="Courier New">www.landgate.wa.gov.au</FONT></A></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Jeff McKenna [via OSGeo.org] [mailto:<a href="/user/SendEmail.jtp?type=node&node=6957858&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>]<BR><B>Sent:</B> Thu 03/11/2011 01:43<BR><B>To:</B> Keith Moss<BR><B>Subject:</B> Re: Corrupted zipped shapefiles from WFS<BR></FONT><BR></DIV>
<DIV>Hi Keith, <BR><BR>I know for a similar issue I created a small test case posted to a <BR>ticket last week <BR>(<A href="http://trac.osgeo.org/mapserver/ticket/3751#comment:21" rel="nofollow" target=_top link="external">http://trac.osgeo.org/mapserver/ticket/3751#comment:21</A>) and in that <BR>case I was able to output a valid zip archive of a shapefile through a <BR>WFS GetFeature request on Windows. If I remember correctly I had to use <BR>MapServer trunk to get this to work properly. <BR><BR>Honestly I didn't dive far into if the zips were valid or not (come to <BR>think of it, I was always using 7-zip to open them as well, which worked). <BR><BR>-jeff <BR><BR><BR><BR>-- <BR>Jeff McKenna <BR>MapServer Consulting and Training Services <BR><A href="http://www.gatewaygeomatics.com/" rel="nofollow" target=_top link="external">http://www.gatewaygeomatics.com/</A><BR><BR><BR><BR><BR>On 11-11-02 3:50 AM, Keith Moss wrote:
<DIV class=shrinkable-quote><div class='shrinkable-quote'><BR>> Hi list, <BR>> <BR>> We're having a bit of an issue with the zipped shapefiles we're getting back <BR>> from WFS GetFeature requests. Winzip claims that they're all corrupted* but, <BR>> oddly, 7zip can open and extract the perfectly valid shapefile without <BR>> issue. We tried to unzip the file with PHP's inbuilt ZIPArchive class, but <BR>> that also had issues - it could read the files in there but would extract <BR>> 0KB length files. <BR>> <BR>> Other output formats - CSV, GML, etc - work without issue. We've reproduced <BR>> the issue on two separate Windows-based servers (2008& 2003). <BR>> <BR>> We've noticed in the corrupted zip files that the file starts with: <BR>> "Content-Disposition: attachment; filename=result.zip <BR>> Content-Type: application/zip" (when we open it in Notepad). We've tried <BR>> removing this, but it didn't help. <BR>> <BR>> Can anyone on the list, or one of the developers, shed any light on the <BR>> situation? <BR>> <BR>> I've attached a simple test case with an example shapefile, would someone be <BR>> able to try it on their setup for us please? <BR>> <BR>> We're using PHP MapScript with MapServer 6.0.1 (MS4W 3.0.3) / PHP 5.3.6. <BR>> <BR>> * The WinZip error: "error [<path>.zip]: start of central directory not <BR>> found; Zip file corrupt." <BR>> <BR>> <A href="http://osgeo-org.1803224.n2.nabble.com/file/n6954263/shapezip.zip" rel="nofollow" target=_top link="external">http://osgeo-org.1803224.n2.nabble.com/file/n6954263/shapezip.zip</A><BR>> shapezip.zip <BR>> </DIV></div><BR>_______________________________________________ <BR>mapserver-users mailing list <BR><A href="" rel="nofollow" target=_top link="external">[hidden email]</A> <BR><A href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="nofollow" target=_top link="external">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR><BR><BR>
<HR color=#cccccc SIZE=1 noShade>
<DIV style="FONT: 12px tahoma,geneva,helvetica,arial,sans-serif; COLOR: #444">
<DIV style="FONT-WEIGHT: bold">If you reply to this email, your message will be added to the discussion below:</DIV><A href="http://osgeo-org.1803224.n2.nabble.com/Corrupted-zipped-shapefiles-from-WFS-tp6954263p6956228.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1803224.n2.nabble.com/Corrupted-zipped-shapefiles-from-WFS-tp6954263p6956228.html</A> </DIV>
<DIV style="MARGIN-TOP: 0.4em; FONT: 11px tahoma,geneva,helvetica,arial,sans-serif; COLOR: #666">To unsubscribe from Corrupted zipped shapefiles from WFS, <A href="" target="_top" rel="nofollow" link="external">click here</A>. </DIV></DIV><p><span style="FONT-SIZE: 11pt; FONT-FAMILY: 'Arial'">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.</span></p>
<div class="small"><br/><img src="/images/icon_attachment.gif" > <strong>shapezip.php</strong> (4K) <a href="/attachment/6957858/0/shapezip.php" target="_top" rel="nofollow" link="external">Download Attachment</a></div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Corrupted-zipped-shapefiles-from-WFS-tp6954263p6957858.html">RE: Corrupted zipped shapefiles from WFS</a><br/>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/Mapserver-User-f1969211.html">Mapserver - User mailing list archive</a> at Nabble.com.<br/>