|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.coverage.grid.AbstractGridFormat
AbstractGridFormat is a convenience class so subclasses only need to
populate a Map class and set the read and write parameter fields.
For example the ArcGridFormat has the following method which sets up all the
required information: private void setInfo(){ HashMap info=new
HashMap(); info.put("name", "ArcGrid"); info.put("description", "Arc Grid
Coverage Format"); info.put("vendor", "Geotools"); info.put("docURL",
"http://gdal.velocet.ca/projects/aigrid/index.html"); info.put("version",
"1.0"); mInfo=info; readParameters=new GeneralParameterDescriptor[2];
readParameters[0]=ArcGridOperationParameter.getGRASSReadParam();
readParameters[0]=ArcGridOperationParameter.getCompressReadParam();
writeParameters=new GeneralParameterDescriptor[2];
writeParameters[0]=ArcGridOperationParameter.getGRASSWriteParam();
writeParameters[0]=ArcGridOperationParameter.getCompressWriteParam();
}
AbstractFormatFactory| Field Summary | |
protected static java.util.Map |
CRSAuthorityfactoriesMap
Synchronized map of created CRS Authorities. |
protected java.util.Map |
mInfo
The Map object is used by the information methods(such as getName()) as a data source. |
protected org.opengis.parameter.ParameterValueGroup |
readParameters
|
protected org.opengis.parameter.ParameterValueGroup |
writeParameters
|
| Constructor Summary | |
AbstractGridFormat()
|
|
| Method Summary | |
abstract boolean |
accepts(java.lang.Object input)
|
protected static void |
addAuthorityFactory(java.lang.String code,
org.opengis.referencing.crs.CRSAuthorityFactory authorityFactory)
Add an authority factory to the authority map. |
boolean |
equals(org.opengis.coverage.grid.Format f)
|
protected static org.opengis.referencing.crs.CRSAuthorityFactory |
getAuthorityfactory(java.lang.String code)
getAuthorityfactory This method retrieves an authority factory with the specified code. |
static org.opengis.referencing.crs.CoordinateReferenceSystem |
getDefaultCRS()
getDefaultCRS This method provides the user with a default crs WGS84 |
java.lang.String |
getDescription()
|
java.lang.String |
getDocURL()
|
java.lang.String |
getName()
|
abstract org.opengis.coverage.grid.GridCoverageReader |
getReader(java.lang.Object source)
|
org.opengis.parameter.ParameterValueGroup |
getReadParameters()
|
java.lang.String |
getVendor()
|
java.lang.String |
getVersion()
|
org.opengis.parameter.ParameterValueGroup |
getWriteParameters()
|
abstract org.opengis.coverage.grid.GridCoverageWriter |
getWriter(java.lang.Object destination)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map mInfo
protected org.opengis.parameter.ParameterValueGroup readParameters
protected org.opengis.parameter.ParameterValueGroup writeParameters
protected static java.util.Map CRSAuthorityfactoriesMap
| Constructor Detail |
public AbstractGridFormat()
| Method Detail |
protected static void addAuthorityFactory(java.lang.String code,
org.opengis.referencing.crs.CRSAuthorityFactory authorityFactory)
code - StringauthorityFactory - CRSAuthorityFactoryprotected static org.opengis.referencing.crs.CRSAuthorityFactory getAuthorityfactory(java.lang.String code)
code - String
public java.lang.String getName()
getName in interface org.opengis.coverage.grid.FormatFormat.getName()public java.lang.String getDescription()
getDescription in interface org.opengis.coverage.grid.FormatFormat.getDescription()public java.lang.String getVendor()
getVendor in interface org.opengis.coverage.grid.FormatFormat.getVendor()public java.lang.String getDocURL()
getDocURL in interface org.opengis.coverage.grid.FormatFormat.getDocURL()public java.lang.String getVersion()
getVersion in interface org.opengis.coverage.grid.FormatFormat.getVersion()public abstract org.opengis.coverage.grid.GridCoverageReader getReader(java.lang.Object source)
public abstract org.opengis.coverage.grid.GridCoverageWriter getWriter(java.lang.Object destination)
public abstract boolean accepts(java.lang.Object input)
public boolean equals(org.opengis.coverage.grid.Format f)
Format.equals(org.geotools.data.coverage.grid.Format)public org.opengis.parameter.ParameterValueGroup getReadParameters()
getReadParameters in interface org.opengis.coverage.grid.Formatpublic org.opengis.parameter.ParameterValueGroup getWriteParameters()
getWriteParameters in interface org.opengis.coverage.grid.Formatpublic static org.opengis.referencing.crs.CoordinateReferenceSystem getDefaultCRS()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||