public class NTv2GridShiftFactory extends ReferencingFactory implements BufferedFactory
#isNTv2Grid(String)
method.Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER
Logger.
|
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
Constructor and Description |
---|
NTv2GridShiftFactory()
Constructs a factory with the default priority.
|
NTv2GridShiftFactory(int priority)
Constructs an instance using the specified priority level.
|
Modifier and Type | Method and Description |
---|---|
GridShiftFile |
createNTv2Grid(URL gridLocation)
Creates a NTv2 Grid.
|
boolean |
isNTv2Grid(URL location)
Performs a NTv2 grid file lookup given its name, and checks for file format correctness.
|
protected boolean |
isNTv2GridFileValid(URL url)
Checks if a given resource is a valid NTv2 file without fully loading it.
|
ensureNonNull, getVendor
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
getImplementationHints
protected static final Logger LOGGER
public NTv2GridShiftFactory()
public NTv2GridShiftFactory(int priority)
priority
- The priority for this factory, as a number between MINIMUM_PRIORITY
and MAXIMUM_PRIORITY
inclusive.public boolean isNTv2Grid(URL location)
name
- The NTv2 grid file nametrue
if file exists and is valid, false
otherwisepublic GridShiftFile createNTv2Grid(URL gridLocation) throws FactoryException
name
- The NTv2 grid nameFactoryException
- if grid cannot be createdprotected boolean isNTv2GridFileValid(URL url)
If file is not valid, the cause is logged at warning level
.
location
- the NTv2 file absolute pathCopyright © 1996–2019 Geotools. All rights reserved.