Package org.geotools.data
Class PrjFileReader
Object
PrjFileReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Since:
- 2.3
- Author:
- Simone Giannecchini
-
Constructor Summary
ConstructorsConstructorDescriptionPrjFileReader
(ReadableByteChannel channel) Load the index file from the given channel.PrjFileReader
(ReadableByteChannel channel, Hints hints) Load the index file from the given channel. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
The reader will close itself right after reading the CRS from the prj file, so no actual need to call it explicitly anymore.Return the Coordinate Reference System retrieved by this reader.
-
Constructor Details
-
PrjFileReader
Load the index file from the given channel.- Parameters:
channel
- The channel to read from.- Throws:
IOException
- If an error occurs.FactoryException
-
PrjFileReader
Load the index file from the given channel.- Parameters:
channel
- The channel to read from.- Throws:
IOException
- If an error occurs.FactoryException
-
-
Method Details
-
getCoordinateReferenceSystem
Return the Coordinate Reference System retrieved by this reader.- Returns:
- the Coordinate Reference System
-
close
The reader will close itself right after reading the CRS from the prj file, so no actual need to call it explicitly anymore.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-