shpcreate & shpadd

Kieran J. Ames kames at keyspanenergy.com
Tue Dec 19 11:14:05 EST 2000


Hello all,
I'm looking to create some point layers from a MySQL db that has lat/lon
entries. I wanted to use mapscript, but there is more than a 3 minute
lag in retreiving the data from the db.
(I've heavily indexed the db, but calls like "where LAT BETWEEN
south_value AND north_value AND LON BETWEEN west_value AND east_value"
return about 500 records out of a possible 1.8 million.) Therefore, I
thought I'd do some pre-processing and have some layers already
available... trading disk space for speed.
I've used shpcreate and shpadd to make the layers, but the disk I/O
requires an unacceptable amount of activity. (With more than 4 million
write functions needed between shp, shx & dbf... I'm concerned about
affecting the life and integrity of my hard drive).

I could use ArcView, but that would be a manual process with more than
300 layers to process. Is there any ArcView script running around there
that could do this? Otherwise, are there any shpcreate, dbfcreate,
shpadd, dbfadd executables that would take a file name as an argument
and write the data in one pass? I want to get to one open/write/close
activity for each layer rather than for each point.

Thanks much for any assistance.
Kieran






More information about the mapserver-users mailing list