[mapserver-users] Length of a line calculation?

Vinko Vrsalovic v@w.cl
Mon, 18 Feb 2002 12:47:55 -0500


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@w.cl>