[mapserver-dev] Create a map form SHP file

Stephen Woodbridge woodbri at swoodbridge.com
Tue May 29 10:20:34 PDT 2012


On 5/29/2012 1:09 PM, Jualboma wrote:
> Hi everyone...
>
> I have a little problem, i´m new using the map-server library and i´m trying
> to devlopment a "visor" but i have a question. using that library is
> possible import a SHP file and show it using map-server?? i means, i want
> that one user can choose a compressed file (ZIP). This file (ZIP) can
> contain .shp, .dbf, .prj etc, etc. And having those files, using (if its
> possible) the map-server libraries could create a map with the layers that
> de SHP file have.
>
> I appreciate any help, books, link, any kind of references!!! Thks a
> lot...and sorry for my English!!!

No mapserver does not do this by itself. You might want to look into 
writing a PHP script the handles uploading a zipped shapefile, 
extracting it to a tmp directory and generating a simple mapefile based 
on if it is a point, line, or polygon shapefile.

You should beware of security issues when uploading zip files that might 
contain other not shapefile files that might try to overwrite other 
files on your system or load malware.

-Steve W


More information about the mapserver-dev mailing list