Ok, Michael,

I execute class and the result was similar to this site, 
http://www.daftlogic.com/projects-google-maps-area-calculator-tool.htm

I think it must be correct.

I got some exceptions:

 org.opengis.referencing.FactoryException: Failed to connect to the EPSG 
database.

Caused by: org.postgresql.util.PSQLException: Connection denied

Caused by: java.net.ConnectException: Connection refused: connect

org.opengis.referencing.FactoryException: Failed to connect to the EPSG 
database.


But, show the result.

Is it normal ?


From: [email protected]
To: [email protected]
Subject: RE: [Geotools-gt2-users] how to calculate area of a polygon by 
coordinates
Date: Fri, 9 Sep 2011 11:48:48 +0000









Ok, Michael,

I execute class and the result was similar to this site, 
http://www.daftlogic.com/projects-google-maps-area-calculator-tool.htm

I think it must be correct.

I got some exceptions:

 org.opengis.referencing.FactoryException: Failed to connect to the EPSG 
database.

Caused by: org.postgresql.util.PSQLException: Connection denied

Caused by: java.net.ConnectException: Connection refused: connect

org.opengis.referencing.FactoryException: Failed to connect to the EPSG 
database.


But, show the result.

Is it normal ?



> Date: Fri, 9 Sep 2011 13:25:29 +1000
> Subject: Re: [Geotools-gt2-users] how to calculate area of a polygon by 
> coordinates
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 
> Hi Thiago,
> 
> > Sorry for bother you again.
> >
> > This is correcte implementation:
> >     private static CoordinateReferenceSystem getDefaultCRS() {
> >         return DefaultGeographicCRS.WGS84;
> >     }
> 
> No. That method (in the class we talked about off-list) should return
> a CRS that you want to be the default for area calculations. You
> convert the WGS84 coordinates into this projection. E.g. in the
> previous example, with the AreaFromLatLons class, we used the South
> America Albers Equal Area Conic projection.
> 
> > More question, the result is in meters ?
> >
> 
> Yes, in the example code the result is in square metres. The CRS you
> choose for calculations defines the distance unit. If you look at the
> WKT definition for the CRS used in the example you will see this:
> 
> //     UNIT["Meter",1],
> 
> Hope that helps, but if you have more questions or code snippets that
> you want to check please feel free to post them to the list - that's
> what it is here for :)
> 
> Michael
                                                                                
  
------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to