AW: [Mapserver-users] Shapefile cut-out

woodbri at swoodbridge.com woodbri at swoodbridge.com
Mon Apr 21 22:59:13 EDT 2003


I came across a great howto article on making a zipfile in php you 
can view it at 

http://www.zend.com/zend/spotlight/creating-zip-files1.php

and another one here that offers a php class library to do the 
something similar at:

http://phpclasses.pathtech.ca/browse.html/package/1033.html

Hope this help,
  -Steve W.

On 9 Apr 2003 at 10:55, Maul, Andreas-Alexander wrote:

> Hi Stefan,
> I do a database query (for geophysical measurements) with the
> coordinates of the rectangle created with mapplet by the user of the
> application and I pack the query results into a zip file. This zip
> file is created with php zip functions and is offered to the user for
> download in a separate window (how to do this see the links
> http://www.zend.com/zend/spotlight/creating-zip-files1.php
> http://www.zend.com/zend/spotlight/creating-zip-files2.php
> http://www.zend.com/zend/spotlight/creating-zip-files3.php and the
> attached file.) I hope this helps. Regards, Andreas
> 
> -----Ursprüngliche Nachricht-----
> Von: Stefan Schwarzer [mailto:stefan.schwarzer at grid.unep.ch] 
> Gesendet: Mittwoch, 9. April 2003 09:13
> An: mapserver-users at lists.gis.umn.edu
> Betreff: [Mapserver-users] Shapefile cut-out
> 
> Hi list,
> 
> I am fighting in the moment for clear thoughts in my dusty brain.
> Perhaps somebody could help me out...
> 
> I have a bundle of national statistical data sets which cover the
> whole world (GDP, Arable Land, etc...). I serve them via MapScript as
> Shapefiles to my map-module, but at the same time in another non-map
> module as raw values via my MySQL database.
> 
> Now I want to enable the user to pre-select a region like Europe or
> Africa. This cut-out should then not only be displayed as a map, but
> be available as a zipped shapefile for download. 
> 
> I read through the posts of the list and found the
> "ms_newShapeFileObj" command as a possible solution. I would then
> probably query the global data set and "paste" the records into the
> new -regional- shapefile. Another possibility would perhaps be to copy
> the original file and just delete the unnecessary entries. Or I would
> have already created the regional files, but without the data, and
> would then fill them via the MySQL database.
> 
> Does anyone have experiences with zipping files in PHP?
> 
> Any hints, ideas and code-examples are very much appreciated.
> 
> Best wishes,
> 
> Stefan
> 
> P.S.: I am using MapScript 3.5, PHP, Apache, NT/Linux.
> 
> 
>         _______________________________________
> 
>         Stefan Schwarzer
>         Consultant on GEO
> 
>         UNEP/DEWA/GRID-Geneva
>         Chemin des Anemones 11
>         CH - 1219 Chatelaine
>         Switzerland
> 
>         Tel: (+41) 22.917.83.49
>         Fax: (+41) 22.917.80.29
> 
>         Email: stefan.schwarzer at grid.unep.ch
>         Internet: http://geodata.grid.unep.ch/
>         _______________________________________
> 






More information about the mapserver-users mailing list