converting/ making shapefiles

Stephen Lime steve.lime at dnr.state.mn.us
Thu Feb 17 23:28:01 EST 2000


Actually there isn't. Current 3.3 removed the shapelib directory. This was done be cause my needs were diverging from the more recent shapelib distribution. I now maintain my own hacked version of Frank's code. The utils Ken mentions are still available with the new shapelib and are improved in some cases. Visit Franks shapelib homepage for
the most recent version which is great for shapefile work.

Again, try mapscript. I added shapefile read/write
methods for just this purpose. I can provide sample code if anyone is interested...

Steve

<<< kenboss <kenboss at dilbert.dnr.state.mn.us>  2/17 12:08p >>>
There is readily available C code just waiting to be hacked to suit your 
purposes in your mapserver distribution.  Have a look in the "shapelib" 
subdirectory - shpdump.c and dbfdump.c can be used together to go from shape to 
CSV, while shpcreate.c and dbfcreate.c can be employed in the other direction.

--Ken

> Peter,

> 
> Since the shapefile format is available, you might be better off writing
> some C or VB or ?? to achieve what you are after.  Perhaps someone has
> already done this?
> 

> 
> Cheers,
> Jim
> 
> "Peter H.M. Jacobs" wrote:
> > 
> > Hello,
> > 
> > has anyone heard of a tool to convert shapefiles into comma separated value
> > files and visa versa
> > 
> > Regards
> > 
> > Peter Jacobs





More information about the mapserver-users mailing list