|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.gis.server.dataproviders.ShapefileDataProvider
public class ShapefileDataProvider
Shapefile data provider. It uses ESRI Shapefiles (.shp) as geographic data source.
Layer data will be the union between the information contained on the .dfb file and
the geographic data.
Xml definition parameters:
| Name | Description | Required |
| fileLocation | Shapefile file location | Yes |
| geometry_type | Geometry type used by the layer: "point", "line" or "polygon" | Yes |
Sample definition code:
<DataProvider
class="com.ontimize.util.gis.server.dataproviders.ShapefileDataProvider"
type="vectorial">
<Attribute name="fileLocation" value="maps/shapes/provincias.shp" />
<Attribute name="geometry_type" value="polygon" />
</DataProvider>
| Field Summary | |
|---|---|
protected org.geotools.data.shapefile.ShapefileDataStore |
dataStore
|
protected static java.lang.String |
FILE_LOCATION
|
protected java.lang.String |
fileLocation
|
protected org.geotools.data.FeatureSource |
fs
|
(package private) com.vividsolutions.jts.geom.GeometryFactory |
gf
|
protected java.io.File |
shapefile
|
protected java.net.URL |
urlLocation
|
| Constructor Summary | |
|---|---|
ShapefileDataProvider()
|
|
ShapefileDataProvider(java.util.Hashtable parameters)
|
|
| 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. |
protected java.util.Vector<com.vividsolutions.jts.geom.Geometry> |
reprojectGeometryVector(java.util.Vector<com.vividsolutions.jts.geom.Geometry> sourceVector,
java.util.Hashtable appliedFilters)
|
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 java.lang.String fileLocation
protected java.net.URL urlLocation
protected java.io.File shapefile
protected org.geotools.data.shapefile.ShapefileDataStore dataStore
protected org.geotools.data.FeatureSource fs
com.vividsolutions.jts.geom.GeometryFactory gf
| Constructor Detail |
|---|
public ShapefileDataProvider()
public ShapefileDataProvider(java.util.Hashtable parameters)
| Method Detail |
|---|
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.Exceptionpublic void initProvider(java.util.Hashtable<java.lang.String,java.lang.Object> parameters)
initProvider in interface IDataProvider
protected java.util.Vector<com.vividsolutions.jts.geom.Geometry> reprojectGeometryVector(java.util.Vector<com.vividsolutions.jts.geom.Geometry> sourceVector,
java.util.Hashtable appliedFilters)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||