Hello Charles :)

[EMAIL PROTECTED] a écrit :
> Recently New Caledonia has updated its official coordinate reference
> system, just updated by the EPSG in the early of August.
> 
> This CRS is unavoidable for my country, is it possible and easy for
> someone to support it in all the necessary Geootols libs. It is the 3163
> EPSG code "RGNC91-93 / Lambert New Caledonia". 


It depends which gt2-epsg-???.jar factory you use.

1) If you use gt2-epsg-access (why implies that an Access database version 6.11 
is installed and 
registered as an ODBC datasource under "EPSG" name), you already have it. You 
can test using the 
following (chdir in a directory containing all Geotools JARs). I tested it and 
it work on my machine.

java -ea -cp gt2-epsg-access-2.3-SNAPSHOT.jar 
org.geotools.referencing.factory.epsg.DefaultFactory 3163



2) If you use gt2-epsg-hsql (which is bundled with a copy of the EPSG database, 
so users don't have 
to install it), then it is not yet available because gt2-epsg-hsql still 
contains the EPSG database 
version 6.8. I have not yet upgrated it to version 6.11. The upgrate should be 
approximatively one 
or two hours work. I just need to take the time to do it (or find a volunter 
for that):

java -ea -cp gt2-epsg-hsql-2.3-SNAPSHOT.jar 
org.geotools.referencing.factory.epsg.DefaultFactory 3163



3) If you use gt2-epsg-wkt, then the issue is more tricky. This plugin contains 
only a subset of the 
EPSG database (approximatively half of all EPSG's CRS), and I'm not sure that 
it is going to evolve 
much. The best thing may be to update it yourself: unzip the JAR file, find the 
epsg.properties file 
and open it in an editor, and add the following line:

3163=
PROJCS["RGNC91-93 / Lambert New Caledonia",
   GEOGCS["RGNC91-93",
     DATUM["Reseau Geodesique de Nouvelle Caledonie 91-93",
       SPHEROID["GRS 1980", 6378137.0, 298.257222101, AUTHORITY["EPSG","7019"]],
       TOWGS84[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
       AUTHORITY["EPSG","6749"]],
     PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
     UNIT["degree", 0.017453292519943295],
     AXIS["Geodetic latitude", NORTH],
     AXIS["Geodetic longitude", EAST],
     AUTHORITY["EPSG","4749"]],
   PROJECTION["Lambert Conic Conformal (2SP)", AUTHORITY["EPSG","9802"]],
   PARAMETER["central_meridian", 166.0],
   PARAMETER["latitude_of_origin", -21.5],
   PARAMETER["standard_parallel_1", -20.666666666666668],
   PARAMETER["false_easting", 400000.0],
   PARAMETER["false_northing", 300000.0],
   PARAMETER["standard_parallel_2", -22.333333333333332],
   UNIT["m", 1.0],
   AXIS["Easting", EAST],
   AXIS["Northing", NORTH],
   AUTHORITY["EPSG","3163"]]

You will have to put everything on a single line. I posted it as an indented 
WKT in this email for 
readability. Be carefull about axis order. The above WKT use 
(latitude,longitude) - you may need to 
swap the two "AXIS[...]" lines in order to force (longitude,latitude) axis 
order if you plan to use 
this CRS with GeoServer. You can also just ommit all AXIS lines; the default is 
(longitude,latitude) 
or (x,y). I believe that all other lines in the epsg.properties file just ommit 
the AXIS infos.

For reference, more on axis order issue here:
http://docs.codehaus.org/display/GEOTOOLS/The+axis+order+issue


The future
----------
As far as I know, current Geoserver and uDig releases avoid epsg-hsql and use 
epsg-wkt instead 
because of the above-cited axis order issue. We would like to abandon completly 
epsg-wkt and get 
Geoserver / uDig to work on epsg-hsql or epsg-access instead. One benefit is 
that you would get the 
CRS for your country (assuming that we updated epsg-hsql, or you use 
epsg-access or 
epsg-postgresql). However we still have some issues to resolve before we get 
there. Those issues are 
tracked there:

http://jira.codehaus.org/browse/GEOT-364

        Martin

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to