[Mapserver-users] PERL mapscript polygon shapefile creation
Lowell Filak
lfilak at medinaco.org
Sun Mar 2 21:18:44 PST 2003
Yes, the code for creating a circle polygon based on a center point and a radius is at:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35ex9
It also turns out that I had a bug/feature in that code where the closing line segment was never written to the shape but the shape closed anyways!?
As strange as it may seem the code works.
HTH
Lowell F.
The following message was sent by Joe Bussell <joe at otsys.com> on Tue, 25 Feb 2003 11:41:56 -0800.
> Greetings Listers,
> I am having difficulty porting a technique we use to create point
> and line type shapefiles to create a polygon shapefile. Has anyone used
> PERL to create polygon shapefiles from data files? I have attached my
> attempt for review. The script creates a shapefile that is readable by
> dump.pl, but I have not been able to use it in a map render.
> I tried this with a data file with the following lines:
> 40.0 -116.0
> 45.0 -116.0
> 45.0 -120.0
> 40.0 -120.0
>
> The script "closes" the polygon by inserting the first record at the end.
>
> Any ideas?
>
> Cordially,
>
> Joe Bussell
>
More information about the MapServer-users
mailing list