talend-spatial / workspace-metadata-crawler

Automatic geospatial data inventory with Talend Spatial
10 stars 6 forks source link

When using GeometryOperation.PROJ compilation issue #43

Open fxprunayre opened 4 years ago

fxprunayre commented 4 years ago
Exception in thread "main" java.lang.Error: Unresolved compilation problems: 
    org.opengis.referencing.crs.CoordinateReferenceSystem cannot be resolved to a type
    org.opengis.referencing.crs.CoordinateReferenceSystem cannot be resolved to a type
    org.opengis.referencing.operation.MathTransform cannot be resolved to a type
    org.geotools.referencing.CRS cannot be resolved to a type
    org.geotools.referencing.CRS cannot be resolved to a type
    org.geotools.referencing.CRS cannot be resolved to a type

    at routines.GeometryOperation.PROJ(GeometryOperation.java:147)
    at test.scan_vector_0_1.scan_vector.sOGRInfoInput_2Process(scan_vector.java:19294)
    at test.scan_vector_0_1.scan_vector.tSetGlobalVar_1Process(scan_vector.java:4888)
    at test.scan_vector_0_1.scan_vector.sOGRInfoInput_1Process(scan_vector.java:4498)
    at test.scan_vector_0_1.scan_vector.tWarn_1Process(scan_vector.java:3429)
    at test.scan_vector_0_1.scan_vector.tLibraryLoad_1Process(scan_vector.java:3205)
    at test.scan_vector_0_1.scan_vector.tLibraryLoad_2Process(scan_vector.java:3008)
    at test.scan_vector_0_1.scan_vector.tLibraryLoad_3Process(scan_vector.java:2819)
    at test.scan_vector_0_1.scan_vector.runJobInTOS(scan_vector.java:33296)
    at test.scan_vector_0_1.scan_vector.main(scan_vector.java:32407)

Not sure why this is not resolved.

Using the sProj is a workaround for that issue.

In scan_vector, computeProperties,

image

set var1 and var2 to null solve the issue (those variables are not used).

image

fxprunayre commented 4 years ago

Issue fixed in https://github.com/talend-spatial/workspace-metadata-crawler/tree/7.x by not using the routine for now.