[mapserver-users] As you can calculate the area of a ShapeObj typePOLYGON?

Steve Lime Steve.Lime at dnr.state.mn.us
Tue Aug 11 15:39:26 EDT 2009


What sort of an error, wrong value, seg fault or something else? What versions of MapServer and
GEOS are you using?

Steve

>>> On 8/11/2009 at 12:35 PM, in message
<339038.18178.qm at web33902.mail.mud.yahoo.com>, joel ml
<mpg70221725 at yahoo.com.ar> wrote:
> 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/



More information about the mapserver-users mailing list