ImageMosaic can't import geotiffs with no CRS

Description

It is impossible to import geotiff file with no coordinate reference system via ImageMosaic store. Geoserver throws an error:

Caused by: org.opengis.referencing.operation.TransformException: Can't transform envelope.
at org.geotools.referencing.CRS.transform(CRS.java:1242)
at org.geoserver.data.util.CoverageStoreUtils.getWGS84LonLatEnvelope(CoverageStoreUtils.java:306)
at
org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:917)
at
org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:855)
at
org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:346)
... 109 more
Caused by: org.opengis.referencing.operation.OperationNotFoundException:
No transformation available from system "EngineeringCRS[Wildcard 2D
cartesian plane in metric unit]" to "GeographicCRS[WGS84(DD)]".
at
org.geotools.referencing.operation.DefaultCoordinateOperationFactory.createOperation(DefaultCoordinateOperationFactory.java:389)
at
org.geotools.referencing.operation.BufferedCoordinateOperationFactory.createOperation(BufferedCoordinateOperationFactory.java:256)
at org.geotools.referencing.CRS.transform(CRS.java:1240)

Example files attached.

Environment

Ubuntu 14.04, Apache Tomcat on Java(TM) SE Runtime Environment (build 1.8.0_45-b14)

Assignee

Unassigned

Reporter

Maciej Filocha

Triage

Fix versions

None

Affects versions

Components

Priority

Medium
Configure