Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.opengis.referencing.datum.DatumFactory is not an ImageIO SPI class #14

Open
davidshumway opened this issue Jan 28, 2022 · 0 comments

Comments

@davidshumway
Copy link

davidshumway commented Jan 28, 2022

Command: java -cp lib/*:bin/TripleGeo.jar eu.geoknow.athenarc.triplegeo.ShpToRdf options.conf

$ java --version
openjdk 11.0.13 2021-10-19
OpenJDK Runtime Environment (build 11.0.13+8-Ubuntu-0ubuntu1.18.04)
OpenJDK 64-Bit Server VM (build 11.0.13+8-Ubuntu-0ubuntu1.18.04, mixed mode, sharing)
*********************************************************************
*                      TripleGeo version 1.1                        *
* Developed by the Institute for Management of Information Systems. *
* Copyright (C) 2013-2014 Athena Research Center, Greece.           *
* This program comes with ABSOLUTELY NO WARRANTY.                   *
* This is FREE software, distributed under GPL license.             *
* You are welcome to redistribute it under certain conditions       *
* as mentioned in the accompanying LICENSE file.                    *
*********************************************************************

Output format is: TTL
 WARN [main] (SetupTDB.java:755) - No BGP optimizer
java.lang.IllegalArgumentException: org.opengis.referencing.datum.DatumFactory is not an ImageIO SPI class
	at java.desktop/javax.imageio.spi.ServiceRegistry.checkClassAllowed(ServiceRegistry.java:722)
	at java.desktop/javax.imageio.spi.ServiceRegistry.<init>(ServiceRegistry.java:117)
	at org.geotools.factory.FactoryRegistry.<init>(FactoryRegistry.java:154)
	at org.geotools.factory.FactoryRegistry.<init>(FactoryRegistry.java:145)
	at org.geotools.factory.FactoryCreator.<init>(FactoryCreator.java:80)
	at org.geotools.referencing.ReferencingFactoryFinder.getServiceRegistry(ReferencingFactoryFinder.java:112)
	at org.geotools.referencing.ReferencingFactoryFinder.getAuthorityFactory(ReferencingFactoryFinder.java:216)
	at org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactory(ReferencingFactoryFinder.java:436)
	at eu.geoknow.athenarc.triplegeo.shape.ShpConnector.getModelFromConfiguration(ShpConnector.java:156)
	at eu.geoknow.athenarc.triplegeo.shape.ShpConnector.<init>(ShpConnector.java:98)
	at eu.geoknow.athenarc.triplegeo.ShpToRdf.main(ShpToRdf.java:40)
Exception in thread "main" java.lang.IllegalArgumentException: org.geotools.data.DataStoreFactorySpi is not an ImageIO SPI class
	at java.desktop/javax.imageio.spi.ServiceRegistry.checkClassAllowed(ServiceRegistry.java:722)
	at java.desktop/javax.imageio.spi.ServiceRegistry.<init>(ServiceRegistry.java:117)
	at org.geotools.factory.FactoryRegistry.<init>(FactoryRegistry.java:154)
	at org.geotools.factory.FactoryCreator.<init>(FactoryCreator.java:89)
	at org.geotools.data.DataStoreFinder.getServiceRegistry(DataStoreFinder.java:125)
	at org.geotools.data.DataStoreFinder.getAvailableDataStores(DataStoreFinder.java:113)
	at org.geotools.data.DataStoreFinder.getDataStore(DataStoreFinder.java:85)
	at eu.geoknow.athenarc.triplegeo.shape.ShpConnector.getShapeFileFeatureCollection(ShpConnector.java:124)
	at eu.geoknow.athenarc.triplegeo.shape.ShpConnector.<init>(ShpConnector.java:99)
	at eu.geoknow.athenarc.triplegeo.ShpToRdf.main(ShpToRdf.java:40)

options.conf

##############################
## Template for TripleGeo configuration in order to convert ESRI SHAPEFILES
## Specify parameters according to the examples for your specific shapefile.
##############################

##############################
## Input and output parameters 
##############################

## Local paths used during processing (all paths are RELATIVE to executable)
tmpDir = ./tmp
outputFile = ./output/USMaritimeLimitsNBoundaries.rdf
inputFile = ./test/data/USMaritimeLimitsNBoundaries.shp

## Specify export format for the output file
## Possible export formats: 
##   RDF/XML (default) 
##   RDF/XML-ABBREV 
##   N-TRIPLES 
##   TURTLE (or TTL)
##   N3
format = N3

## Specify the type of the triple store where the exported data will be imported.
## Possible values: 
##    GeoSPARQL
##    Virtuoso
##    wgs84_pos (for WGS84 Geoposition RDF vocabulary)
targetStore = GeoSPARQL

##############################
## Data parameters (CASE-sensitive for shapefiles!!!)
## Change parameters to reflect the shapefile contents that will be extracted
##############################

## MANDATORY parameter that indicates the name of the source file (without extension .shp)
#featureString = points
featureString = ${featureName}

## MANDATORY field name containing unique identifier for each entity (i.e., each record in the shapefile)
#attribute = osm_id
attribute = ${resourceIdentityAttribute}

## MANDATORY parameter that specifies particular values (e.g., UNK) in attributes that should not be exported as literals
## By default, NULL values in attributes are suppressed and never exported
#ignore = UNK
ignore = ${ignoredAttributeValues}

## MANDATORY parameter that specifies a user-defined name for the resources that will be created
#type = points
type = ${type}

## OPTIONAL field name from which name literals (i.e., strings) will be extracted. 
## Set value UNK if non applicable.
#name = name
name = ${name}

## OPTIONAL field name from which classification literals (e.g., type of points, road classes etc.) will be extracted.
## Set value UNK if non applicable.
#class = type
class = ${class}

##############################
## Namespaces parameters
## Optional parameters. Change these parameters if you want to use different values for the namespaces and prefixes
##############################

## Specify the common URI namespace for all generated resources
nsURI = http://example.org/kg

## Define a prefix name for the utilized URI namespace (i.e., the previously declared with nsURI)
nsPrefix = ex

## Specify the namespace for the underlying geospatial ontology
ontologyNS = http://www.opengis.net/ont/geosparql#

## Define a prefix name for the geospatial ontology (i.e., the previously declared with ontologyNS)
ontologyNSPrefix = geo

###############################
## Spatial Reference parameters
###############################
## Optional parameters. These fields should be filled in if a transformation between EPSG reference systems is needed
## Comment out both properties if geometries are assumed in WGS84 reference system (EPSG:4326).
sourceRS = EPSG:2100
targetRS = EPSG:4326

##############################
## Other parameters
##############################
# Optional parameters. Default lang for the labels created in the output RDF. By default, the value will be English-en
defaultLang=en
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant