[mapserver-users] clip and zip server
Milo van der Linden
mlinden at zeelandnet.nl
Mon Mar 31 13:50:54 PDT 2008
Hello Jim,
This is no out of the box functionality, but I would solve this as follows:
You build some sort of webservice that responds to an AJAX request by:
A) //- Website functions ---//
1) - Taking the bounding box, the users e-mail and the selected layers
as parameters
2) - Doing some business logic to tell if the request is valid
3) - Storing the request including the users e-mail and the boundingbox
and the layers that the user selected (in a table in the postgres
database for instance)
4)- return an AJAX response telling the user that:
- His request is added to the que
- He will recieve the dataset per e-mail
B) //- Server batch ---//
1) You build a script on the server that
- looks at the postgres table for pending requests
- loops the requested layers doing a geo-select (postGIS function)
- Export the selection to shape using ogr2ogr or psql2shp
- zip the shapes
- mail them.
Hope this is helpfull for you.
Kind regards,
Milo
Fawcett, David schreef:
> You might want to look at http://deli.dnr.state.mn.us/data_search.html
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org
> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of jim white
> Sent: Monday, March 31, 2008 3:13 PM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] clip and zip server
>
>
> We have implemented a mapserver site that allows users to create an
> area of interest. Next, we want to let the user select some layers and
> then clip the layers to the AOI, zip them, put the zip file on an ftp
> server, and send an e-mail when they are ready. This should be done on a
> second server from the main mapserver server.
>
> Would appreciate any suggestions from anyone who has done something
> similar or who has any ideas how this is best done. Original mapserver
> site is in PHP and prefer that or Python for the second server.
>
> Thanks,
>
> Jim
>
>
More information about the MapServer-users
mailing list