Finding centroids from shapefiles (php/mapscript)
Ben Madin
ben at REMOTEINFORMATION.COM.AU
Sun Jun 18 19:03:10 PDT 2006
G'day all,
I am hoping to put lines (arrows) between polygons (to show flow). I
was thinking of starting and ending the arrows based on the centroid
of the polygon, but although I have found some stuff on doing this
with PostGIS, I am using shapefiles and MSSQL Server, so my question
is :
Can I find or calculate the centroid of a shapefile (ideally from php/
mapscript)?
cheers
Ben
--
Ben Madin
t/f: 08 9192 5535
m: 0448 887 220
ben at remoteinformation.com.au
More information about the MapServer-users
mailing list