Shape file creation??

Stephen Lime steve.lime at dnr.state.mn.us
Tue Nov 9 18:32:59 PST 1999


The mapserver home page is a likely candidate. Perhaps someone at the U will chime in with possibilities.

Steve

<<< <cshorte2 at csc.com> 11/ 9  7:35p >>>


It would be good if there was a central web page which described all the scripts
that people have written that relate to mapserver.  It could possibly go even
further and provide a location to store these scripts, or provide a CVS
repository to develope them.

Cameron.





"Paul G. Allen" <pgallen at randomlogic.com> on 11/10/99 10:33:00 AM

To:   MapServer Users List <mapserver-users at lists.gis.umn.edu>
cc:    (bcc: Cameron Shorter/AUST/SUBCONTRACTOR/CSC)
Subject:  Re: Shape file creation??



Kieran Ames wrote:
>
> I'm shooting from the hip here...
> Does anyone know if there is anything like "txt2shp.exe" that could take
> a text file (or ODBC result) that contains points and looks like this:
>
> NAME    LONG    LAT    ATTR_1    ATTR_2    ATTR_3        etc.....
>
> and convert it to the appropriate shp, dbf, shx files?
>
> TIA
>
> Kieran

I have a set of utilities written in Perl and C for just this purpose. The code
uses Shapelib 1.2.5 for shapefile creation and was written and compiled under
Red Hat Linux 6.0 (Kernel 2.2.5-15). Right now it only works with POINT types,
but it would be a fairly simple matter to add other shape types as well. The
source can be found here:

http://24.5.14.144/phframe.html

I can send the C binaries if you'd like. The code is also easily compiled for M$
platforms, but note that I modified a portion of the Shapelib library due to
problems with the GNU* and egcs compilers.

I plan to get the entire source tree and biinaries on an ftp site soon.

PGA








More information about the MapServer-users mailing list