Generalizing shapefiles...
Trevor Banister
trevor at banisterconsulting.com
Mon Apr 10 14:26:45 PDT 2000
This looks quite usefull. It runs without the overhead of Arcview/Avenue and
will run from the command line.
The only scary part is the section that reads:
system("rm $outfile.*");
I often have map files and html files that start with the same name as my
shapes. The script looks like it will wipe out these and anyhing that starts
with $outfile.
how about a little safer code that just nukes the output files.
system("rm $outfile.shp")
system("rm $outfile.shx")
system("rm $outfile.dbf")
...
etc..
Just my $0.02,
Trevor
-----Original Message-----
From: Stephen Lime
To: mapserver-users at lists.gis.umn.edu
Sent: 4/10/00 1:54 PM
Subject: Generalizing shapefiles...
Greetings: In case anyone is interested I ported the shapefile
generalization Avenue
script (Douglas-Peuckert Algorithm) hat comes with ArcView to MapScript.
It's little
slower, but then again it's free. On test coverages I've processed it
produces the
exact same output as the Avenue version. I need to add a progress meter,
but that's
about it. It requires version 3.3.010.
I hope someone will find it useful.
Steve
Stephen Lime
Internet Applications Analyst
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
<<thin.pl>>
More information about the MapServer-users
mailing list