|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.gis.server.dataproviders.GeoImageDataProvider
public class GeoImageDataProvider
Georreferenced image data provider.
Xml definition parameters:
| Name | Description | Required |
| fileLocation | Location of the image file | Yes |
| boundingBox | Bounding box for the file. Description format --> "Env[minX:maxX,minY:maxY]" | Yes |
| coordinateReferenceSystem | Coordinate reference system for the image in EPSG format code | Yes |
Sample definition code:
<DataProvider
class="com.ontimize.util.gis.server.dataproviders.GeoImageDataProvider"
type="raster">
<Attribute name="fileLocation" value="images/greenwich_ecuatorial.png" />
<Attribute name="boundingBox" value="Env[-1.0:1-0, -1.0:1.0]" />
<Attribute name="coordinateReferenceSystem" value="EPSG:4326" />
</DataProvider>
| Field Summary | |
|---|---|
protected java.lang.String |
bboxString
|
protected static java.lang.String |
BOUNDING_BOX
|
protected com.vividsolutions.jts.geom.Envelope |
boundingBox
|
(package private) java.awt.image.BufferedImage |
buffImage
|
protected static java.lang.String |
COORDINATE_REFERENCE_SYSTEM
|
protected org.opengis.referencing.crs.CoordinateReferenceSystem |
crs
|
protected java.lang.String |
crsCode
|
protected static java.lang.String |
FILE_LOCATION
|
protected java.lang.String |
fileLocation
|
protected java.io.File |
imageFile
|
protected java.net.URL |
urlLocation
|
| Constructor Summary | |
|---|---|
GeoImageDataProvider()
|
|
GeoImageDataProvider(java.util.Hashtable parameters)
Data provider for a gis raster layers where the data source is a georreferenced image Parameters in data provider xml definition: - "fileLocation": Location of the image file - "boundingBox": Bounding box for the file. |
|
| Method Summary | |
|---|---|
void |
delete(java.lang.Object keysValues,
int sessionId)
This method must implement a standard delete operation over the set of records defined by keysValues. |
void |
initProvider(java.util.Hashtable<java.lang.String,java.lang.Object> parameters)
|
java.lang.Object |
insert(java.lang.Object attributesValues,
int sessionId)
This method must implement a standard insert operation with the data contained in attributesValues parameter. |
java.lang.Object |
query(java.lang.Object keysValues,
java.lang.Object attributes,
int sessionId)
This method must implement a standard query operation returning the set of data that matches the conditions specified by the keysValues parameter. |
void |
update(java.lang.Object keysValues,
java.lang.Object attributesValues,
int sessionId)
This method must implement a standard update operation with the data specified in attributesValues over the set of records defined by keysValues. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String FILE_LOCATION
protected static final java.lang.String BOUNDING_BOX
protected static final java.lang.String COORDINATE_REFERENCE_SYSTEM
protected java.lang.String fileLocation
protected java.lang.String bboxString
protected java.lang.String crsCode
protected org.opengis.referencing.crs.CoordinateReferenceSystem crs
protected com.vividsolutions.jts.geom.Envelope boundingBox
protected java.io.File imageFile
protected java.net.URL urlLocation
java.awt.image.BufferedImage buffImage
| Constructor Detail |
|---|
public GeoImageDataProvider()
public GeoImageDataProvider(java.util.Hashtable parameters)
parameters - - Parameters Hashtable| Method Detail |
|---|
public void initProvider(java.util.Hashtable<java.lang.String,java.lang.Object> parameters)
initProvider in interface IDataProvider
public void delete(java.lang.Object keysValues,
int sessionId)
throws java.lang.Exception
IDataAccess
delete in interface IDataAccesskeysValues - The conditions that the records to be deleted must fulfillsessionId - Session Id for this user
java.lang.Exception
public java.lang.Object insert(java.lang.Object attributesValues,
int sessionId)
throws java.lang.Exception
IDataAccess
insert in interface IDataAccessattributesValues - Data to storesessionId - Session Id for this user
java.lang.Exception
public void update(java.lang.Object keysValues,
java.lang.Object attributesValues,
int sessionId)
throws java.lang.Exception
IDataAccess
update in interface IDataAccesskeysValues - The conditions that the records to be updated must fulfillattributesValues - The data for updating the records tosessionId - Session Id for this user
java.lang.Exception
public java.lang.Object query(java.lang.Object keysValues,
java.lang.Object attributes,
int sessionId)
throws java.lang.Exception
IDataProvider
query in interface IDataProviderkeysValues - Identifiers for the dataattributes - Data attributes to querysessionId - Session Id for this user
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||