Hi all,
I noticed that if I enable the geotools dev log I get these errors:
26 mar 16:07:20 DEBUG [org.geotools.referencing.factory] - Failed to
create an object for code "8647".
org.opengis.referencing.NoSuchIdentifierException: Could not locate NTv2
Grid File NTv2_0.gsb
at org.geotools.referencing.operation.transform.NTv2Transform.<init>(
NTv2Transform.java:115)
at
org.geotools.referencing.operation.transform.NTv2Transform$Provider.createMathTransform(
NTv2Transform.java:406)
at
org.geotools.referencing.operation.DefaultMathTransformFactory.createParameterizedTransform(
DefaultMathTransformFactory.java:463)
at
org.geotools.referencing.operation.DefaultMathTransformFactory.createBaseToDerived(
DefaultMathTransformFactory.java:352)
at
org.geotools.referencing.factory.epsg.DirectEpsgFactory.createCoordinateOperation(
DirectEpsgFactory.java:2727)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateOperation(
BufferedAuthorityFactory.java:1041)
at
org.geotools.referencing.factory.epsg.DirectEpsgFactory.createCoordinateOperation(
DirectEpsgFactory.java:2676)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createCoordinateOperation(
BufferedAuthorityFactory.java:1041)
at
org.geotools.referencing.factory.epsg.CoordinateOperationSet.createObject(
CoordinateOperationSet.java:91)
at org.geotools.referencing.factory.IdentifiedObjectSet$Iter.toNext(
IdentifiedObjectSet.java:394)
at org.geotools.referencing.factory.IdentifiedObjectSet$Iter.<init>(
IdentifiedObjectSet.java:378)
at org.geotools.referencing.factory.IdentifiedObjectSet.iterator(
IdentifiedObjectSet.java:221)
at org.geotools.referencing.factory.IdentifiedObjectSet.resolve(
IdentifiedObjectSet.java:239)
at
org.geotools.referencing.factory.epsg.DirectEpsgFactory.createFromCoordinateReferenceSystemCodes(
DirectEpsgFactory.java:2849)
at
org.geotools.referencing.factory.BufferedAuthorityFactory.createFromCoordinateReferenceSystemCodes(
BufferedAuthorityFactory.java:1065)
at
org.geotools.referencing.operation.AuthorityBackedFactory.createFromDatabase(
AuthorityBackedFactory.java:242)
at
org.geotools.referencing.operation.DefaultCoordinateOperationFactory.tryDB(
DefaultCoordinateOperationFactory.java:1562)
at
org.geotools.referencing.operation.DefaultCoordinateOperationFactory.createOperationStep(
DefaultCoordinateOperationFactory.java:1006)
at
org.geotools.referencing.operation.DefaultCoordinateOperationFactory.createOperation(
DefaultCoordinateOperationFactory.java:286)
at
org.geotools.referencing.operation.BufferedCoordinateOperationFactory.createOperation(
BufferedCoordinateOperationFactory.java:256)
at org.geotools.geometry.jts.ReferencedEnvelope.transform(
ReferencedEnvelope.java:647)
at org.geotools.geometry.jts.ReferencedEnvelope.transform(
ReferencedEnvelope.java:603)
at org.geoserver.gwc.layer.GeoServerTileLayer.getLatLonBbox(
GeoServerTileLayer.java:247)
at org.geoserver.gwc.layer.GeoServerTileLayer.checkGridSubsets(
GeoServerTileLayer.java:692)
at org.geoserver.gwc.layer.GeoServerTileLayer.getGridSubsets(
GeoServerTileLayer.java:680)
at org.geowebcache.diskquota.storage.TilePageCalculator.getTileSetsFor(
TilePageCalculator.java:91)
at org.geowebcache.diskquota.storage.BDBQuotaStore.createLayer(
BDBQuotaStore.java:257)
at org.geowebcache.diskquota.storage.BDBQuotaStore.access$700(
BDBQuotaStore.java:40)
at org.geowebcache.diskquota.storage.BDBQuotaStore$StartUpInitializer.call(
BDBQuotaStore.java:224)
at org.geowebcache.diskquota.storage.BDBQuotaStore$StartUpInitializer.call(
BDBQuotaStore.java:186)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
I work with full build of (GeoTools/Geoserver TRUNK)
2012/3/26 Oscar Fonts <oscar.fo...@gmail.com>
> Hey! I was missing this thread!
>
> Great to have a tool to see what transformation is being used in each
> case. Long needed for those who need to control what is going on under the
> hood.
>
>
> 2012/3/26 Francesco Izzi <francesco.i...@geosdi.org>
>
>> how can I test the NTV2 trasformation ?
>> I have ItalyMonteMarioToWGS84_NTV2.gsb file and i put the grid in
>> $GEOSERVER_DATA_DIR/user_projections.
>>
>
> As long as the transform is registered in the EPSG database, that is the
> way to go: simply copy the .gsb file in $GEOSERVER_DATA_DIR/user_
> projections. The file has to be named exactly as in the EPSG registry.
>
> Now, which are the registered transforms in EPSG? Ok, documentation
> needed. I'll go for it asap. For now, follow Andrea's work here:
> https://jira.codehaus.org/browse/GEOS-5006
>
> And, what if the trasform is not listed in EPSG? Well, that will need a
> way to use user-defined transformations (similar to epsg_overrides, but
> beyond towgs84 params). Still working on that, trying to find my way across
> ReferencingFactories. Stay tuned.
>
>
>
>> Is there some log to be sure that the grid is in use ?
>>
>
> Use the console, check transformation deails. See the first message in
> this thread (haven't tested myself -- yet).
>
>
> Oscar.
>
>
--
Francesco Izzi
CNR - IMAA
geoSDI
Direzione Tecnologie e Sviluppo
C.da S. Loja
85050 Tito Scalo - POTENZA (PZ)
Italia
phone: +39 0971427305
fax: +39 0971 427271
mob: +39 3203126609
mail: francesco.i...@geosdi.org
skype: neofx8080
web: http://www.geosdi.org
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel