Martin Desruisseaux ha scritto:
> Andrea Aime a écrit :
> It look like similar to the user CRS, except that TOWGS84 parameters are
> slightly differents and the projection is "Oblique Mercator" instead of
> "Hotine
> Oblique Mercator".
>
> I checked manually in the EPSG database version 6.12 (just to make sure that
> the
> difference is not a EPSG-HSQL bug), and the EPSG database really defines
> "Oblique Mercator" (operation method EPSG:9815) for "CH1903 / LV03"
> (coordinate
> reference system EPSG:21781, coordinate operation "Swiss New Grid"
> EPSG:19922).
Ah! I did not have the latest version of the EPSG database, haven't been
building trunk and 2.3.x in a few days since I'm working on something
else (versioning WFS). Just tried with trunk, and yes, 21781 is there,
as well as 21780.
I then tried it with 2.3.x (full build) and when I started geoserver
1.5.x I got no 21781, nor 21780, because there are issues loading them
from the database. The log is filled with hundreds of these (the
following are just samples):
26-feb-2007 16.55.10 org.vfny.geoserver.action.SrsHelpAction execute
AVVERTENZA: Issues converting EPSG:2036. Unit conversion from "DMS" to
"°" is non-linear. Stack trace included at FINER logging level
...
...
26-feb-2007 16.55.15 org.vfny.geoserver.action.SrsHelpAction execute
AVVERTENZA: Issues converting EPSG:21100. Can't set a value to the
parameter "Latitude of natural origin". Stack trace included at FINER
logging level
...
26-feb-2007 16.55.18 org.vfny.geoserver.action.SrsHelpAction execute
AVVERTENZA: Issues converting EPSG:66126413. Invalid WKT format. Stack
trace included at FINER logging level
26-feb-2007 16.55.18 org.vfny.geoserver.action.SrsHelpAction execute
...
I can send you the stack traces too in a private mail, if you need them.
The specific one for 21781 is:
AVVERTENZA: Issues converting EPSG:21781
org.opengis.referencing.NoSuchIdentifierException: Can't set a value to
the parameter "Scale factor on initial line".
at
org.geotools.referencing.factory.epsg.FactoryUsingSQL.fillParameterValues(FactoryUsingSQL.java:2094)
at
org.geotools.referencing.factory.epsg.FactoryUsingSQL.createCoordinateOperation(FactoryUsingSQL.java:2397)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateOperation(BufferedAuthorityFactory.java:896)
at
org.geotools.referencing.factory.epsg.FactoryUsingSQL.createCoordinateReferenceSystem(FactoryUsingSQL.java:1821)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:674)
at
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:485)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:674)
at
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:485)
at
org.geotools.referencing.factory.FallbackAuthorityFactory.createCoordinateReferenceSystem(FallbackAuthorityFactory.java:524)
at
org.geotools.referencing.factory.AllAuthoritiesFactory.createCoordinateReferenceSystem(AllAuthoritiesFactory.java:784)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:674)
at org.geotools.referencing.CRS.decode(CRS.java:340)
at org.geotools.referencing.CRS.decode(CRS.java:276)
at
org.vfny.geoserver.action.SrsHelpAction.execute(SrsHelpAction.java:87)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1050)
at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:103)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
at org.mortbay.jetty.Server.handle(Server.java:269)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:687)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:208)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
Caused by: org.opengis.parameter.ParameterNotFoundException: Parameter
"Scale factor on initial line" is missing.
at
org.geotools.parameter.ParameterGroup.parameter(ParameterGroup.java:325)
at
org.geotools.referencing.factory.epsg.FactoryUsingSQL.fillParameterValues(FactoryUsingSQL.java:2080)
... 35 more
I've also rebuilt 2.3.x again with another mvn clean install, the
result did not change.
Cheers
Andrea
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel