public class GeoJsonToRdf
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Classification |
classification |
private static org.opengis.referencing.crs.CRSAuthorityFactory |
crsFactory |
(package private) Configuration |
currentConfig |
(package private) java.lang.String |
inputFile |
(package private) Assistant |
myAssistant |
(package private) Converter |
myConverter |
(package private) java.lang.String |
outputFile |
(package private) org.opengis.referencing.operation.MathTransform |
reproject |
(package private) int |
sourceSRID |
(package private) int |
targetSRID |
Constructor and Description |
---|
GeoJsonToRdf(Configuration config,
Classification classific,
java.lang.String inFile,
java.lang.String outFile,
int sourceSRID,
int targetSRID)
Constructor for the transformation process from GeoJSON file to RDF.
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Applies transformation according to the configuration settings.
|
private org.geotools.feature.FeatureIterator<?> |
collectData(java.lang.String jsonPath)
Opens the GeoJSON file specified in the configuration and returns a feature iterator.
|
Converter myConverter
Assistant myAssistant
org.opengis.referencing.operation.MathTransform reproject
int sourceSRID
int targetSRID
Configuration currentConfig
private Classification classification
java.lang.String inputFile
java.lang.String outputFile
private static final org.opengis.referencing.crs.CRSAuthorityFactory crsFactory
public GeoJsonToRdf(Configuration config, Classification classific, java.lang.String inFile, java.lang.String outFile, int sourceSRID, int targetSRID) throws java.lang.ClassNotFoundException
config
- Parameters to configure the transformation.classific
- Instantiation of the classification scheme that assigns categories to input features.inFile
- Path to input GeoJSON file.outFile
- Path to the output file that collects RDF triples.sourceSRID
- Spatial reference system (EPSG code) of the input geometries.targetSRID
- Spatial reference system (EPSG code) of geometries in the output RDF triples.java.lang.ClassNotFoundException
public void apply()
private org.geotools.feature.FeatureIterator<?> collectData(java.lang.String jsonPath)
jsonPath
- The path to the GeoJSON file.