[mapserver-users] As you can calculate the area of a ShapeObj type POLYGON?
joel ml
mpg70221725 at yahoo.com.ar
Tue Aug 11 10:35:44 PDT 2009
Here part of the code that was trying to do :
shapeObj s=new shapeObj(MS_SHAPE_TYPE.MS_SHAPE_POLYGON.swigValue());
int n=ListaCoordenadas.size();
lineObj lin=new lineObj();
for (int i = 0; i < n; i++) {
pointObj p1=ListaCoordenadas.get(i);
lin.add(p1);
}
lin.add(ListaCoordenadas.get(0));
s.add(lin);
Xutil.print("wkt : "+ s.toWKT());
area=s.getArea();
Xutil.print("area total : "+area);
The problem is that i launches an error in calculating the
Area
Yahoo! Cocina
Encontra las mejores recetas con Yahoo! Cocina.
http://ar.mujer.yahoo.com/cocina/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090811/dfa28ce2/attachment.htm>
More information about the MapServer-users
mailing list