public class MIFProjReader extends Object
MIFProjReader class enables CoordSys clause parsing support for writing of Features in MapInfo MIF/MID text file format.
Open issues:
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER
The logger for the mif module.
|
private static String |
PRJ_NAME |
private File |
prjFile |
private static ConcurrentHashMap |
prjMap |
private static String |
QUOTE |
private static String |
SRID_PATTERN |
Constructor and Description |
---|
MIFProjReader(String path)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
checkFileName(String path)
Check the path name of the PRJ file
|
String |
checkSRID(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
This method checks whether SRID exists in MapInfo projection file.
|
private void |
fillPrjMap(String SRID,
String mifCrs)
This method fills prjMap
|
private ConcurrentHashMap |
getPrjMap()
This method initializes prjMap
|
private void |
readPrjFile(org.geotools.data.mif.MIFFileTokenizer prj)
Reads PRJ file stream tokenizer
|
protected static final Logger LOGGER
private static final String PRJ_NAME
private static final String SRID_PATTERN
private static final String QUOTE
private static ConcurrentHashMap prjMap
private File prjFile
public MIFProjReader(String path) throws IOException
IOException
private void checkFileName(String path) throws FileNotFoundException
path
- The full path of the .mif file, with or without extensionFileNotFoundException
private void readPrjFile(org.geotools.data.mif.MIFFileTokenizer prj) throws IOException
prj
- IOException
private void fillPrjMap(String SRID, String mifCrs) throws IOException
SRID
- Epsg code added in HashMapmifCrs
- MapInfo projectionIOException
private ConcurrentHashMap getPrjMap() throws IOException
IOException
public String checkSRID(org.opengis.referencing.crs.CoordinateReferenceSystem crs) throws IOException
crs
- Coordinate Reference SystemIOException
Copyright © 2017 BitCtrl Systems GmbH. All rights reserved.