This issue pops up from time to time, this time it happened to me...

- GeoServer 2.2beta2 (and related SQL Server plugin) on Ubuntu
- SQL Server 2008 R2 on Windows 7
- Polygos data loaded from shapefile with OGR2OGR
- SRID defined in the OGR2OGR command lne
- Spatial index created with correct bounds

...but still SRS and BBOX are empty, and when SRS is set by hand and then 
"Compute 
from data" is clicked:
java.lang.RuntimeException: java.io.IOException: Error occured calculating 
bounds
        at 
org.geotools.jdbc.JDBCFeatureSource.getBoundsInternal(JDBCFeatureSource.java:508)
        at 
org.geotools.jdbc.JDBCFeatureStore.getBoundsInternal(JDBCFeatureStore.java:189)
        at 
org.geotools.data.store.ContentFeatureSource.getBounds(ContentFeatureSource.java:426)
        at
...
org.geotools.data.sqlserver.SQLServerDialect.decodeGeometryEnvelope(SQLServerDialect.java:272)
        at org.geotools.jdbc.JDBCDataStore.getBounds(JDBCDataStore.java:1159)
        ... 94 more
Caused by: org.opengis.referencing.NoSuchAuthorityCodeException: No code 
"EPSG:0" 
from authority "European Petroleum Survey Group" found for object of type 
"IdentifiedObject".
        at 
org.geotools.referencing.factory.AbstractAuthorityFactory.noSuchAuthorityCode(AbstractAuthorityFactory.java:951)
        at 
org.geotools.referencing.factory.PropertyAuthorityFactory.getWKT(PropertyAuthorityFactory.java:316)
        at 
org.geotools.referencing.factory.PropertyAuthorityFactory.createCoordinateReferenceSystem(PropertyAuthorityFactory.java:390)
        at 
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateReferenceSystem(BufferedAuthorityFactory.java:783)
        at 
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:800)
        at 
org.geotools.referencing.factory.FallbackAuthorityFactory.createCoordinateReferenceSystem(FallbackAuthorityFactory.java:640)
        at 
org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:800)
        at 
org.geotools.referencing.factory.ThreadedAuthorityFactory.createCoordinateReferenceSystem(ThreadedAuthorityFactory.java:731)
        at 
org.geotools.referencing.DefaultAuthorityFactory.createCoordinateReferenceSystem(DefaultAuthorityFactory.java:179)
        at org.geotools.referencing.CRS.decode(CRS.java:489)
        at org.geotools.referencing.CRS.decode(CRS.java:417)
        at 
org.geotools.data.sqlserver.SQLServerDialect.decodeGeometry(SQLServerDialect.java:245)
        ... 96 more

Regards,

Luca Morandini
Data Architect - AURIN project
Department of Computing and Information Systems
University of Melbourne
Tel. +61 03 903 58 380
Skype: lmorandini



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to