public class PrjFileReader extends Object implements Closeable
| Constructor and Description |
|---|
PrjFileReader(ReadableByteChannel channel)
Load the index file from the given channel.
|
PrjFileReader(ReadableByteChannel channel,
Hints hints)
Load the index file from the given channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
The reader will close itself right after reading the CRS from the prj file, so no actual need
to call it explicitly anymore.
|
CoordinateReferenceSystem |
getCoordinateReferenceSystem()
Return the Coordinate Reference System retrieved by this reader.
|
public PrjFileReader(ReadableByteChannel channel) throws IOException, FactoryException
channel - The channel to read from.IOException - If an error occurs.FactoryExceptionpublic PrjFileReader(ReadableByteChannel channel, Hints hints) throws IOException, FactoryException
channel - The channel to read from.IOException - If an error occurs.FactoryExceptionpublic CoordinateReferenceSystem getCoordinateReferenceSystem()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 1996–2021 Geotools. All rights reserved.