public class DataStoreUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_COORDS_WKT |
static int |
maxFeatures |
| Constructor and Description |
|---|
DataStoreUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
basisRegelThemaData2PropertyNames(List<ThemaData> themaData) |
static QName |
convertColumnNameToQName(String ln) |
static org.geotools.geometry.jts.ReferencedEnvelope |
convertFeature2Envelop(org.opengis.feature.Feature f) |
static String |
convertFeature2WKT(org.opengis.feature.Feature f,
boolean fallback) |
static QName |
convertFeatureTypeToQName(String ln,
org.geotools.data.DataStore ds) |
static String |
convertQNameToFullname(QName qn) |
static org.geotools.data.DataStore |
createDataStoreFromParams(Map params)
Wordt nu niet gebruikt, maar dit is wel de best plaats voor later
|
static com.vividsolutions.jts.geom.Geometry |
createGeomFromWKTString(String wktstring) |
static org.opengis.filter.Filter |
createIntersectFilter(Gegevensbron gb,
org.geotools.data.DataStore ds,
com.vividsolutions.jts.geom.Geometry geom) |
static org.opengis.filter.Filter |
createIntersectFilter(String geomAttributeName,
org.opengis.referencing.crs.CoordinateReferenceSystem crs,
org.geotools.data.DataStore ds,
com.vividsolutions.jts.geom.Geometry geom) |
static org.opengis.filter.Filter |
createIntersectFilter(Themas t,
org.geotools.data.DataStore ds,
com.vividsolutions.jts.geom.Geometry geom)
Deprecated.
|
static List<QName> |
getAttributeNames(nl.b3p.zoeker.configuratie.Bron b,
Gegevensbron gb) |
static List<QName> |
getAttributeNames(org.geotools.data.DataStore ds,
QName ftName)
Geeft een lijst terug met String objecten waarin de mogelijke
attributeNames staan.
|
static org.geotools.feature.FeatureCollection |
getFeatureCollection(org.geotools.data.DataStore ds,
Gegevensbron gb,
org.opengis.filter.Filter f,
List<String> propNames,
Integer maximum,
boolean collectGeom) |
static ArrayList<org.opengis.feature.Feature> |
getFeatures(nl.b3p.zoeker.configuratie.Bron b,
Gegevensbron gb,
com.vividsolutions.jts.geom.Geometry geom,
org.opengis.filter.Filter extraFilter,
List<String> propNames,
Integer maximum,
boolean collectGeom)
Haal de features op van het Thema De 3 mogelijke filters worden
gecombineerd als ze gevuld zijn (1: ThemaFilter, 2: ExtraFilter 3:
GeometryFilter) LETOP!
|
static ArrayList<org.opengis.feature.Feature> |
getFeatures(org.geotools.data.DataStore ds,
Gegevensbron gb,
org.opengis.filter.Filter f,
List<String> propNames,
Integer maximum,
boolean collectGeom)
De beste functie om te gebruiken.
|
static org.geotools.data.FeatureSource |
getFeatureSource(org.geotools.data.DataStore ds,
QName ftName) |
static String |
getGeometryAttributeName(org.geotools.data.DataStore ds,
Gegevensbron gb) |
static String |
getGeometryAttributeName(org.geotools.data.DataStore ds,
Themas t) |
static org.opengis.feature.type.GeometryType |
getGeometryType(org.opengis.feature.Feature f) |
static org.opengis.feature.simple.SimpleFeatureType |
getSchema(org.geotools.data.DataStore ds,
Gegevensbron gb)
Haal het thema schema op van de datastore.
|
static org.opengis.feature.simple.SimpleFeatureType |
getSchema(org.geotools.data.DataStore ds,
QName ftName)
Haalt het schema op van de featureType met de naam: 'featureName' Als het
log op DebugEnabled staat dan wordt er in het log ook een lijst met
mogelijke schemas getoond.
|
static org.opengis.feature.simple.SimpleFeatureType |
getSchema(org.geotools.data.DataStore ds,
Themas t)
Haal het thema schema op van de datastore.
|
static org.opengis.filter.Filter |
getThemaFilter(Gegevensbron gb) |
static org.opengis.filter.Filter |
getThemaFilter(Themas t) |
static QName |
getThemaGeomName(Gegevensbron gb,
GisPrincipal user) |
static QName |
getThemaGeomName(Themas t,
GisPrincipal user)
DOCUMENT ME!
|
static String |
getThemaGeomType(Themas t,
GisPrincipal user) |
static QName[] |
getTypeNames(org.geotools.data.DataStore ds) |
static List<org.opengis.feature.Feature> |
getWfsFeaturesWithGeotools(Gegevensbron gb,
com.vividsolutions.jts.geom.Geometry geom) |
static boolean |
isFilterSupported(org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore ds,
org.opengis.filter.Filter filter) |
static void |
main(String[] args) |
static void |
main2(String[] args) |
static QName |
n2Qn(org.opengis.feature.type.Name n) |
static org.opengis.feature.type.Name |
qN2N(QName qn) |
static String |
reconstructPrefixedName(QName qname,
org.geotools.data.DataStore ds)
Beperkingen bij de Geotools implementatie van WFS 1.0 en 1.1 maken het
onmogelijk om zowel de prefix als de namespace url te bewaren.
|
static String |
selecteerKaartObjectWkt(org.opengis.feature.Feature f) |
static List<String> |
themaData2PropertyNames(List<ThemaData> themaData) |
public static final int maxFeatures
public static final int MAX_COORDS_WKT
public static ArrayList<org.opengis.feature.Feature> getFeatures(nl.b3p.zoeker.configuratie.Bron b, Gegevensbron gb, com.vividsolutions.jts.geom.Geometry geom, org.opengis.filter.Filter extraFilter, List<String> propNames, Integer maximum, boolean collectGeom) throws IOException, Exception
t - Het thema waarvan de features moeten worden opgehaaldgeom - De geometrie waarmee de features moeten intersecten (mag null
zijn)extraFilter - een extra filter dat wordt gebruikt om de features op
te halenmaximum - Het maximum aantal features die gereturned moeten worden.
(default is geset op 1000)IOExceptionExceptionpublic static List<org.opengis.feature.Feature> getWfsFeaturesWithGeotools(Gegevensbron gb, com.vividsolutions.jts.geom.Geometry geom)
public static ArrayList<org.opengis.feature.Feature> getFeatures(org.geotools.data.DataStore ds, Gegevensbron gb, org.opengis.filter.Filter f, List<String> propNames, Integer maximum, boolean collectGeom) throws IOException, Exception
IOExceptionExceptionpublic static String reconstructPrefixedName(QName qname, org.geotools.data.DataStore ds) throws IOException
qname - typename met namespaceds - datastore waarin de typename te vinden is.IOExceptionpublic static org.geotools.feature.FeatureCollection getFeatureCollection(org.geotools.data.DataStore ds,
Gegevensbron gb,
org.opengis.filter.Filter f,
List<String> propNames,
Integer maximum,
boolean collectGeom)
throws IOException,
Exception
IOExceptionException@Deprecated public static org.opengis.filter.Filter createIntersectFilter(Themas t, org.geotools.data.DataStore ds, com.vividsolutions.jts.geom.Geometry geom) throws Exception
Exceptionpublic static org.opengis.filter.Filter createIntersectFilter(Gegevensbron gb, org.geotools.data.DataStore ds, com.vividsolutions.jts.geom.Geometry geom) throws Exception
Exceptionpublic static org.opengis.filter.Filter createIntersectFilter(String geomAttributeName, org.opengis.referencing.crs.CoordinateReferenceSystem crs, org.geotools.data.DataStore ds, com.vividsolutions.jts.geom.Geometry geom) throws Exception
Exceptionpublic static org.opengis.filter.Filter getThemaFilter(Themas t) throws org.geotools.filter.text.cql2.CQLException
org.geotools.filter.text.cql2.CQLExceptionpublic static String getGeometryAttributeName(org.geotools.data.DataStore ds, Themas t) throws Exception
Exceptionpublic static org.opengis.feature.simple.SimpleFeatureType getSchema(org.geotools.data.DataStore ds,
Themas t)
throws Exception
Exceptionpublic static org.opengis.feature.simple.SimpleFeatureType getSchema(org.geotools.data.DataStore ds,
QName ftName)
public static org.geotools.data.FeatureSource getFeatureSource(org.geotools.data.DataStore ds,
QName ftName)
throws IOException
IOExceptionpublic static boolean isFilterSupported(org.geotools.data.wfs.v1_0_0.WFS_1_0_0_DataStore ds,
org.opengis.filter.Filter filter)
throws IOException
IOExceptionpublic static org.opengis.filter.Filter getThemaFilter(Gegevensbron gb) throws org.geotools.filter.text.cql2.CQLException
org.geotools.filter.text.cql2.CQLExceptionpublic static String getGeometryAttributeName(org.geotools.data.DataStore ds, Gegevensbron gb) throws Exception
Exceptionpublic static org.opengis.feature.simple.SimpleFeatureType getSchema(org.geotools.data.DataStore ds,
Gegevensbron gb)
throws Exception
Exceptionpublic static List<QName> getAttributeNames(nl.b3p.zoeker.configuratie.Bron b, Gegevensbron gb) throws Exception
Exceptionpublic static List<QName> getAttributeNames(org.geotools.data.DataStore ds, QName ftName) throws Exception
Exceptionpublic static List<String> themaData2PropertyNames(List<ThemaData> themaData)
public static List<String> basisRegelThemaData2PropertyNames(List<ThemaData> themaData)
public static QName[] getTypeNames(org.geotools.data.DataStore ds) throws IOException
IOExceptionpublic static QName getThemaGeomName(Themas t, GisPrincipal user) throws IOException, Exception
t - Themasconn - ConnectionIOExceptionExceptionpublic static QName getThemaGeomName(Gegevensbron gb, GisPrincipal user) throws IOException, Exception
IOExceptionExceptionpublic static String getThemaGeomType(Themas t, GisPrincipal user) throws IOException, Exception
IOExceptionExceptionpublic static org.geotools.data.DataStore createDataStoreFromParams(Map params) throws IOException, Exception
params - IOExceptionExceptionpublic static org.opengis.feature.type.Name qN2N(QName qn)
public static QName n2Qn(org.opengis.feature.type.Name n)
public static QName convertFeatureTypeToQName(String ln, org.geotools.data.DataStore ds) throws IOException, Exception
IOExceptionExceptionpublic static org.opengis.feature.type.GeometryType getGeometryType(org.opengis.feature.Feature f)
public static org.geotools.geometry.jts.ReferencedEnvelope convertFeature2Envelop(org.opengis.feature.Feature f)
public static String convertFeature2WKT(org.opengis.feature.Feature f, boolean fallback)
public static String selecteerKaartObjectWkt(org.opengis.feature.Feature f)
public static com.vividsolutions.jts.geom.Geometry createGeomFromWKTString(String wktstring) throws Exception
Exceptionpublic static void main(String[] args) throws URISyntaxException, IOException, Exception
URISyntaxExceptionIOExceptionExceptionCopyright © 2016. All rights reserved.