[Proj] desperate with proj4

fabrice leray fabriceyarel at hotmail.com
Thu Oct 5 14:30:40 PDT 2006


Hi,

I had this problem too: the thing is that you do not jave to install proj4 
by yourself you MUST use the library delivered Deegree. So make a search to 
your .dll (or .so depending on what OS you are) and point to that path.

I hope this help...


Nevertheless, I have another problem with the projection feature (again):

with example GetMap delivered with Deegree, nothing appears and  I have this 
stack trace:

Using: defaultChannelName=deegree, 
mailNotificationAddress=administrator at localhost, 
mailSessionName=mail/DefaultSession, log.mail.active=false
Using Logging Class: org.deegree.framework.log.Log4JLogger
[23:17:17]  INFO: Starting deegree version 2.0.0 (2006/07/26 16:26 
official-b1) on server: Apache Tomcat/5.5.20 / Java version: 1.5.0_08
[23:17:17]  INFO: Initializing OGC services in context deegree WMS  - 2st 
preRelease for V. 2.0 and real path C:\Program Files\Apache Software 
Foundation\Tomcat 5.5\temp\0-deegree2\index.jsp
[23:17:17]  INFO: - Initializing WMS -
[23:17:17]  INFO: Reading configuration for WMS from URL: 'file:/C:/Program 
Files/Apache Software Foundation/Tomcat 
5.5/temp/0-deegree2/WEB-INF/conf/wms/wms_configuration.xml'.
[23:17:19]  INFO: Parsing (mapped) GML application schema file '/C:/Program 
Files/Apache Software Foundation/Tomcat 
5.5/temp/0-deegree2/WEB-INF/conf/wms/featuretypes/Philosopher.xsd'.
[23:17:20]  INFO: Parsing (mapped) GML application schema file '/C:/Program 
Files/Apache Software Foundation/Tomcat 
5.5/temp/0-deegree2/WEB-INF/conf/wms/featuretypes/SGID024_Springs.xsd'.
[23:17:20]  INFO: Opening dbf file 
'../../../data/utah/vector/SGID024_Springs'.
[23:17:20]  INFO: Successfully opened dbf file 
'../../../data/utah/vector/SGID024_Springs' and retrieved the property 
columns.
[23:17:20]  INFO: Retrieved feature type information from the attached 
schema.
[23:17:20]  INFO: Validating the column names in the dbf file '/C:/Program 
Files/Apache Software Foundation/Tomcat 
5.5/temp/0-deegree2/WEB-INF/data/utah/vector/SGID024_Springs' with the 
declared feature type properties.
[23:17:20]  INFO: Validation successful.
[23:17:20]  INFO: Parsing (mapped) GML application schema file '/C:/Program 
Files/Apache Software Foundation/Tomcat 
5.5/temp/0-deegree2/WEB-INF/conf/wms/featuretypes/SGID024_StateBoundary.xsd'.
[23:17:20]  INFO: Opening dbf file 
'../../../data/utah/vector/SGID024_StateBoundary'.
[23:17:20]  INFO: Successfully opened dbf file 
'../../../data/utah/vector/SGID024_StateBoundary' and retrieved the property 
columns.
[23:17:20]  INFO: Retrieved feature type information from the attached 
schema.
[23:17:20]  INFO: Validating the column names in the dbf file '/C:/Program 
Files/Apache Software Foundation/Tomcat 
5.5/temp/0-deegree2/WEB-INF/data/utah/vector/SGID024_StateBoundary' with the 
declared feature type properties.
[23:17:20]  INFO: Validation successful.
[23:17:20]  INFO: Parsing (mapped) GML application schema file '/C:/Program 
Files/Apache Software Foundation/Tomcat 
5.5/temp/0-deegree2/WEB-INF/conf/wms/featuretypes/SGID100_RailroadsDLG100.xsd'.
[23:17:20]  INFO: Opening dbf file 
'../../../data/utah/vector/SGID100_RailroadsDLG100'.
[23:17:20]  INFO: Successfully opened dbf file 
'../../../data/utah/vector/SGID100_RailroadsDLG100' and retrieved the 
property columns.
[23:17:20]  INFO: Retrieved feature type information from the attached 
schema.
[23:17:20]  INFO: Validating the column names in the dbf file '/C:/Program 
Files/Apache Software Foundation/Tomcat 
5.5/temp/0-deegree2/WEB-INF/data/utah/vector/SGID100_RailroadsDLG100' with 
the declared feature type properties.
[23:17:20]  INFO: Validation successful.
[23:17:20]  INFO: Creating WFService instance.
[23:17:21]  INFO: Creating WFService instance.
[23:17:21]  INFO: Creating WFService instance.
[23:17:21]  INFO: <DataDirectoryList> evaluation is not suporrted yet
[23:17:21]  INFO: deegree wms (1.1.1) service pool initialized.
[23:17:21]  INFO: WMS successfully initialized.
[23:17:21]  INFO: Installed OGC services: WMS on server:
[23:17:21]  INFO: - IP: 192.168.1.64
[23:17:21]  INFO: - Host name: falcon
[23:17:21]  INFO: - Domain name: 192.168.1.64
[23:17:47]  INFO: Incoming request from 127.0.0.1/127.0.0.1 - 1160083067109
[23:17:47]  INFO: requested server address: 
http://127.0.0.1:8080/deegree2/ogcwebservice
[Fatal Error] :1:1: Content is not allowed in prolog.
[23:17:47]  INFO: Request could not be parsed as XML, trying to handle it as 
KVP encoded now.
[23:17:47]  INFO: Handling request '2' from '127.0.0.1' to service: 'WMS'
java.lang.NullPointerException
	at java.io.File.<init>(Unknown Source)
	at org.deegree.model.proj4.Projections.readDefinition(Projections.java:160)
	at org.deegree.model.proj4.Projections.<init>(Projections.java:146)
	at org.deegree.model.proj4.Others.<init>(Others.java:65)
	at org.deegree.model.proj4.Projections.create(Projections.java:127)
	at 
org.deegree.model.crs.CoordinateSystem.getAsProjection(CoordinateSystem.java:174)
	at 
org.deegree.model.crs.CoordinateSystem.getUnits(CoordinateSystem.java:221)
	at org.deegree.framework.util.MapUtil.calcScale(MapUtil.java:95)
	at 
org.deegree.ogcwebservices.wms.DefaultGetMapHandler.performGetMap(DefaultGetMapHandler.java:182)
	at org.deegree.ogcwebservices.wms.WMService.doService(WMService.java:126)
	at org.deegree.enterprise.servlet.WMSHandler.perform(WMSHandler.java:170)
	at 
org.deegree.enterprise.servlet.OGCServletController.doService(OGCServletController.java:150)
	at 
org.deegree.enterprise.servlet.OGCServletController.doGet(OGCServletController.java:244)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown Source)
[23:17:47]  INFO: OGC WMS scale: 0.0
[23:17:47] ERROR: null is not a valid CRS
org.deegree.model.crs.CRSTransformationException: null is not a valid CRS
	at org.deegree.model.crs.GeoTransformer.<init>(GeoTransformer.java:96)
	at 
org.deegree.ogcwebservices.wms.DefaultGetMapHandler.validate(DefaultGetMapHandler.java:574)
	at 
org.deegree.ogcwebservices.wms.DefaultGetMapHandler.invokeNamedLayer(DefaultGetMapHandler.java:296)
	at 
org.deegree.ogcwebservices.wms.DefaultGetMapHandler.performGetMap(DefaultGetMapHandler.java:216)
	at org.deegree.ogcwebservices.wms.WMService.doService(WMService.java:126)
	at org.deegree.enterprise.servlet.WMSHandler.perform(WMSHandler.java:170)
	at 
org.deegree.enterprise.servlet.OGCServletController.doService(OGCServletController.java:150)
	at 
org.deegree.enterprise.servlet.OGCServletController.doGet(OGCServletController.java:244)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.deegree.model.proj4.Proj4Exception: null is not a valid CRS
	at org.deegree.model.proj4.Projections.<init>(Projections.java:150)
	at org.deegree.model.proj4.Others.<init>(Others.java:65)
	at org.deegree.model.proj4.Projections.create(Projections.java:127)
	at 
org.deegree.model.crs.CoordinateSystem.getAsProjection(CoordinateSystem.java:174)
	at org.deegree.model.crs.GeoTransformer.<init>(GeoTransformer.java:94)
	... 23 more
java.lang.NullPointerException
	at 
org.deegree.enterprise.servlet.WMSHandler.writeServiceExceptionReport(WMSHandler.java:445)
	at 
org.deegree.enterprise.servlet.WMSHandler.handleResponse(WMSHandler.java:192)
	at org.deegree.enterprise.servlet.WMSHandler.perform(WMSHandler.java:175)
	at 
org.deegree.enterprise.servlet.OGCServletController.doService(OGCServletController.java:150)
	at 
org.deegree.enterprise.servlet.OGCServletController.doGet(OGCServletController.java:244)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown Source)
[23:17:47] ERROR:
java.lang.NullPointerException
	at 
org.deegree.enterprise.servlet.WMSHandler.writeServiceExceptionReport(WMSHandler.java:445)
	at 
org.deegree.enterprise.servlet.WMSHandler.handleResponse(WMSHandler.java:192)
	at org.deegree.enterprise.servlet.WMSHandler.perform(WMSHandler.java:175)
	at 
org.deegree.enterprise.servlet.OGCServletController.doService(OGCServletController.java:150)
	at 
org.deegree.enterprise.servlet.OGCServletController.doGet(OGCServletController.java:244)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown Source)
[23:17:47] ERROR: null
java.lang.NullPointerException
	at 
org.deegree.enterprise.servlet.WMSHandler.writeServiceExceptionReport(WMSHandler.java:445)
	at 
org.deegree.enterprise.servlet.WMSHandler.handleResponse(WMSHandler.java:192)
	at org.deegree.enterprise.servlet.WMSHandler.perform(WMSHandler.java:175)
	at 
org.deegree.enterprise.servlet.OGCServletController.doService(OGCServletController.java:150)
	at 
org.deegree.enterprise.servlet.OGCServletController.doGet(OGCServletController.java:244)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown Source)
[23:17:47]  INFO: nullnull
org.deegree.enterprise.ServiceException
org.deegree.enterprise.servlet.OGCServletController 
OGCServletController.java doService(165)
org.deegree.enterprise.servlet.OGCServletController 
OGCServletController.java doGet(244)
javax.servlet.http.HttpServlet HttpServlet.java service(689)
javax.servlet.http.HttpServlet HttpServlet.java service(802)
org.apache.catalina.core.ApplicationFilterChain ApplicationFilterChain.java 
internalDoFilter(252)
org.apache.catalina.core.ApplicationFilterChain ApplicationFilterChain.java 
doFilter(173)

[23:17:47]  INFO: java.lang.ClassCastException: 
org.deegree.ogcwebservices.OGCWebServiceException




It seems to have a recognition problem with my request.

pb. seems to come from:
"org.deegree.model.proj4.Projections.readDefinition" method...


:(
If anybody can help.... Thanks in advance.





============
Deegree seems to do fabulous job  but what a pity to configure... Nevermind, 
I'll keep hanging on... ;)





More information about the Proj mailing list