convert shapefiles

Stephen Lime steve.lime at dnr.state.mn.us
Mon Dec 20 07:01:47 PST 1999


I wrote a simple shapefile dumping program using MapScript. It's distributed in
the mapscript/examples directory in the new 3.3 version. Dump.pl shows you
how to access the spatial side of a shapefile. You can use DBI and the 
DBD::Xbase module to access the .dbf side. The is also a 'create.pl' script you
can modify to take data from just about any perl accessible location and create
shapefiles. Be careful with polygon data as the shapefile specification talks about
vertex ordering for inner (i.e. holes) vs outer rings. MapServer does not require 
that ordering (at this time) but other packages may.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> "Peter H.M. Jacobs" <peter.jacobs at vs42.nl> 12/20/99 05:07AM >>>
Does anyone know how to convert shapefiles to comma separated value files,
or these CSV files to Shapefiles?

Regards,

peter jacobs






More information about the MapServer-users mailing list