Shape file creation? An example!

Paul G. Allen pgallen at randomlogic.com
Thu Nov 11 02:35:04 EST 1999


This was supposed to go to the list the first time, not privately to Doug. :)

PGA

"Paul G. Allen" wrote:
> 
> Doug Nebert wrote:
> >
> > Kieran:
> >
> > Yesterday, ironically, I did just this kind of thing based on
> > the simple script example in the shapelib directory as a script.
> > I wrote a perl script to receive the output from an earthquake
> > checker program (finger quake at gldfs.cr.usgs.gov) -- a fixed column
> > format file and fed it to the shapelib executables. It does use
> > the "system" invocations but this should work with perl on either
> > UNIX or NT since the invocations are the same in shapelib. Here
> > is the little script. One thing to note is that you need to enter
> > coordinates and attributes in the same order. (Something I could
> > not make work was the ability to load numeric fields so I loaded
> > all fields as text fields. -n option is either poorly documented
> > or broken.):
> >
> 
> My scripts and binaries use the 1.2.5 version of Shapelib and the numeric field
> types work BUT they are acually stored as text. The field itself is tagged in
> the DBASE file header as numeric (N), but the data in the filed is ASCII text.
> 
> PGA



More information about the mapserver-users mailing list