[mapserver-users] Length of a line calculation?

Vinko Vrsalovic v at w.cl
Mon Feb 18 09:47:55 PST 2002


Hello, 

	I'm wanting to do the following in MapScript, but don't know
	if it's possible.

	Suppose i have a LINE layer from a shapefile that only has one
	attribute in its DBF file. Then I select all the shapes from the
	shapefile that match a certain criteria in the attribute, now i
	want to know, for instance, how long are all the shapes i
	selected.

	Can I do that? (Obtain the length in ground units of a selected
	shape). How, if possible, can that be done? And last, but not
	least, is the procedure generalizable to polygons to obtain its
	area or perimeter?

Thank you,
-- 
V. <v at w.cl>



More information about the MapServer-users mailing list