|
From: Sven T. <sve...@we...> - 2005-05-27 14:47:09
|
Hello David, ok, I used the jdbc-driver from the sub-folder of gt-postgis but I ran into another problem, although I have the most recent geoapi (20050403) and the gt-main.jar from 2.1M5 java.lang.NoSuchMethodError: org.geotools.referencing.FactoryFinder.getCRSFactory()Lorg/opengis/referencing/crs/CRSFactory; org.geotools.referencing.crs.AUTOCRSAuthorityFactory.<init>(AUTOCRSAuthorityFactory.java:104) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:274) java.lang.Class.newInstance0(Class.java:308) java.lang.Class.newInstance(Class.java:261) sun.misc.Service$LazyIterator.next(Service.java:270) org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:420) org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:114) org.geotools.referencing.FactoryFinder.getCRSAuthorityFactories(FactoryFinder.java:314) org.geotools.referencing.CRS.decode(CRS.java:205) org.geotools.data.postgis.referencing.PostgisAuthorityFactory.createFromAuthority(PostgisAuthorityFactory.java:103) org.geotools.data.postgis.referencing.PostgisAuthorityFactory.createCRS(PostgisAuthorityFactory.java:60) org.geotools.data.postgis.PostgisDataStore.getGeometryAttribute(PostgisDataStore.java:706) org.geotools.data.postgis.PostgisDataStore.buildAttributeType(PostgisDataStore.java:637) org.geotools.data.jdbc.JDBCDataStore.buildSchema(JDBCDataStore.java:1232) org.geotools.data.jdbc.FeatureTypeHandler.getFeatureTypeInfo(FeatureTypeHandler.java:200) org.geotools.data.jdbc.FeatureTypeHandler.getSchema(FeatureTypeHandler.java:168) org.geotools.data.jdbc.JDBCDataStore.getSchema(JDBCDataStore.java:499) org.geotools.data.postgis.PostgisDataStore.getFeatureSource(PostgisDataStore.java:1186) geoportal.models.GeoserverFileBroker.storeFile(GeoserverFileBroker.java:235) geoportal.actions.UploadAction.execute(UploadAction.java:48) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292) org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362) Yes, I also want to write to postgis 'cause I am working at a geoportal where the upload should be made dynamically. Geotools has definetely not a writing access to postgis, hasn't it? I tried to work with java.lang.Runtime.exec() and shp2pgsql of postgis. But it didnt work. Do you have any hints for a converter from shape to postgis??? Best regards, Sven __________________________________________________________ Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. weltweit telefonieren! http://freephone.web.de/?mc=021201 |