Holger Jaekel wrote:
> Jürgen Jacob wrote:
>> WARNUNG: Unavailable authority factory: European
>> Petroleum Survey Group
>> org.opengis.referencing.FactoryException: Failed to
>> connect to the EPSG
>> database.
>> at
>> org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.crea
>> teBackingStore(ThreadedEpsgFactory.java:483)
>
> Did you check if an EPSG database is in your classpath? Try to
> include gt2-epsg-hsql.
Why do I need this? I set the CRS when creating the featuretype:
featureBuilder.addType(AttributeTypeFactory.newAttributeType("geometry",
Point.class, true, Integer.MAX_VALUE,null, DefaultGeographicCRS.WGS84));
I have changed to the memory data store as proposed by Jody Garnett. And
it works (except my Envelope problem): I don't get this exception any
more. But it is quite slow , just toggling a shape layer on/off takes
twice the time UDIG needs.
Therefore I changed my Renderer from StreamingRenderer to
ShapefileRenderer. Now the rendering is as fast as in UDIG but I get the
exception with the EPSG again. I guess it'c cause I have four layers
based on memory data stores and use the ShapefileRenderer but after
getting this exception (four times... one stacktrace for each layer) the
map is shown even with the temporary layers. And also toggling them
off/on is fastter than using the StreamingRenderer.
Can I somehow prevent from trying to coennect to this EPSG database?
Thank you,
Jürgen
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users