Thanks! It really helped. But I've met another problem.
I have a coordinate(lat,lon) array for the whole territory of Russia,
I can't use CRS.decode("EPSG:3576") for coordinates: (43.79 131.95)
I do get an error:


WARNING: Prefs file removed in background
/home/ssa/.java/.userPrefs/org/geotools/referencing/wkt/prefs.xml
common.geo.model.RuntimeConfigurationException: Error during conversion of
[(43.792022705078125, 131.9571533203125, NaN)] to
[PARAM_MT["Lambert_Azimuthal_Equal_Area", 
  PARAMETER["semi_major", 6378137.0], 
  PARAMETER["semi_minor", 6356752.314245179], 
  PARAMETER["latitude_of_center", 90.0], 
  PARAMETER["longitude_of_center", 90.0], 
  PARAMETER["false_easting", 0.0], 
  PARAMETER["false_northing", 0.0]]]
        at
common.geo.model.builder.v2.GeometryBuilder.toGeometry(GeometryBuilder.java:62)
        at
common.geo.model.builder.v2.GeometryBuilder.buildCircle(GeometryBuilder.java:36)
        at
common.geo.model.builder.v2.GeometryBuilderPerfomanceTest.testCircleCreation(GeometryBuilderPerfomanceTest.java:50)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)

What is a best practice of converting from various spatial coords to
geometry JTS?



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/WGS84-to-a-Cartesian-transformation-tp4318606p5035060.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to