|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.franz.ag.GeoExtension
This class implements Geospatial Analysis tools.
An AllegroGraph triple store can be used to store geographic locations in a compact and efficiently searchable representation. The methods in this class implement search operations on locations.
This class is instantiated from an AllegroGraph instance with a call to
AllegroGraph.getGeoExtension().
| Method Summary | |
void |
addCartesianDatatypeMapping(java.lang.String label,
GeospatialSubtype subtype)
Add a predicate mapping for a geospatial subtype encoding. |
void |
addCartesianPredicateMapping(java.lang.String label,
GeospatialSubtype subtype)
Add a predicate mapping for a geospatial subtype encoding. |
void |
addSphericalDatatypeMapping(java.lang.String label,
GeospatialSubtype subtype)
Add a predicate mapping for a geospatial subtype encoding. |
void |
addSphericalPredicateMapping(java.lang.String label,
GeospatialSubtype subtype)
Add a predicate mapping for a geospatial subtype encoding. |
void |
addSubtype(GeospatialSubtype subtype)
Associate a GeospatialSubtype with a triple store. |
java.lang.Object[] |
decodeUPI(UPI upi)
Decode a geospatial UPI into subtype, longitude and latitude. |
java.lang.Object[] |
decodeUPIs(UPI[] upi)
Decode an array of geospatial UPIs into subtype, longitude and latitude arrays. |
UPI |
encodeUPI(GeospatialSubtype subtype,
double longitude,
double latitude)
Create a geospatial UPI instance encoding a location. |
UPI[] |
encodeUPIs(GeospatialSubtype subtype,
double[] longlat)
Create an array of geospatial UPI instances encoding locations. |
UPI[] |
encodeUPIs(GeospatialSubtype subtype,
double[] longitude,
double latitude)
Create an array of geospatial UPI instances encoding locations. |
UPI[] |
encodeUPIs(GeospatialSubtype subtype,
double[] longitude,
double[] latitude)
Create an array of geospatial UPI instances encoding locations. |
UPI[] |
encodeUPIs(GeospatialSubtype subtype,
double longitude,
double[] latitude)
Create an array of geospatial UPI instances encoding locations. |
Cursor |
getStatementsInBoundingBox(GeospatialSubtype subtype,
java.lang.Object predicate,
double xMin,
double xMax,
double yMin,
double yMax,
boolean indexedOnly,
boolean includeDeleted)
Find all the triples in some bounding box. |
Cursor |
getStatementsInHKm(GeospatialSubtype subtype,
java.lang.Object predicate,
double lon,
double lat,
double radius,
boolean indexedOnly,
boolean includeDeleted)
Find all the triples in a circle. |
Cursor |
getStatementsInHMiles(GeospatialSubtype subtype,
java.lang.Object predicate,
double lon,
double lat,
double radius,
boolean indexedOnly,
boolean includeDeleted)
Find all the triples in a circle. |
Cursor |
getStatementsInHRadians(GeospatialSubtype subtype,
java.lang.Object predicate,
double lon,
double lat,
double radius,
boolean indexedOnly,
boolean includeDeleted)
Find all the triples in a circle. |
Cursor |
getStatementsInRadius(GeospatialSubtype subtype,
java.lang.Object predicate,
double lon,
double lat,
double radius,
boolean indexedOnly,
boolean includeDeleted)
Find all the triples in a circle. |
GeospatialSubtype |
registerCartesianStriping(double lonMin,
double lonMax,
double latMin,
double latMax,
double stripWidth)
Register a cartesian striping subtype. |
GeospatialSubtype |
registerLatitudeStripingInDegrees(double width)
Register a latitude striping subtype. |
GeospatialSubtype |
registerLatitudeStripingInDegrees(double width,
java.lang.Double latMin,
java.lang.Double latMax,
java.lang.Double lonMin,
java.lang.Double lonMax)
Register a latitude striping subtype. |
GeospatialSubtype |
registerLatitudeStripingInKm(double width)
Register a latitude striping subtype. |
GeospatialSubtype |
registerLatitudeStripingInKm(double width,
java.lang.Double latMin,
java.lang.Double latMax,
java.lang.Double lonMin,
java.lang.Double lonMax)
Register a latitude striping subtype. |
GeospatialSubtype |
registerLatitudeStripingInMiles(double width)
Register a latitude striping subtype. |
GeospatialSubtype |
registerLatitudeStripingInMiles(double width,
java.lang.Double latMin,
java.lang.Double latMax,
java.lang.Double lonMin,
java.lang.Double lonMax)
Register a latitude striping subtype. |
GeospatialSubtype |
registerLatitudeStripingInRadians(double width)
Register a latitude striping subtype. |
GeospatialSubtype |
registerLatitudeStripingInRadians(double width,
java.lang.Double latMin,
java.lang.Double latMax,
java.lang.Double lonMin,
java.lang.Double lonMax)
Register a latitude striping subtype. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public GeospatialSubtype registerCartesianStriping(double lonMin,
double lonMax,
double latMin,
double latMax,
double stripWidth)
throws AllegroGraphException
lonMin - lonMax - latMin - latMax - stripWidth -
AllegroGraphException
public GeospatialSubtype registerLatitudeStripingInDegrees(double width)
throws AllegroGraphException
width - in degrees
AllegroGraphException
public GeospatialSubtype registerLatitudeStripingInDegrees(double width,
java.lang.Double latMin,
java.lang.Double latMax,
java.lang.Double lonMin,
java.lang.Double lonMax)
throws AllegroGraphException
width - width in degreeslatMin - the minimum latitude included in the strip. A null value specifies the
built-in default of the server.latMax - the maximum latitude included in the strip. A null value specifies the
built-in default of the server.lonMin - the minimum longitude included in the strip. A null value specifies the
built-in default of the server.lonMax - the maximum longitude included in the strip. A null value specifies the
built-in default of the server.
AllegroGraphException
public GeospatialSubtype registerLatitudeStripingInMiles(double width)
throws AllegroGraphException
width - in miles
AllegroGraphException
public GeospatialSubtype registerLatitudeStripingInMiles(double width,
java.lang.Double latMin,
java.lang.Double latMax,
java.lang.Double lonMin,
java.lang.Double lonMax)
throws AllegroGraphException
width - width in mileslatMin - the minimum latitude included in the strip. A null value specifies the
built-in default of the server.latMax - the maximum latitude included in the strip. A null value specifies the
built-in default of the server.lonMin - the minimum longitude included in the strip. A null value specifies the
built-in default of the server.lonMax - the maximum longitude included in the strip. A null value specifies the
built-in default of the server.
AllegroGraphException
public GeospatialSubtype registerLatitudeStripingInKm(double width)
throws AllegroGraphException
width - in kilometers
AllegroGraphException
public GeospatialSubtype registerLatitudeStripingInKm(double width,
java.lang.Double latMin,
java.lang.Double latMax,
java.lang.Double lonMin,
java.lang.Double lonMax)
throws AllegroGraphException
width - width in kilometerslatMin - the minimum latitude included in the strip. A null value specifies the
built-in default of the server.latMax - the maximum latitude included in the strip. A null value specifies the
built-in default of the server.lonMin - the minimum longitude included in the strip. A null value specifies the
built-in default of the server.lonMax - the maximum longitude included in the strip. A null value specifies the
built-in default of the server.
AllegroGraphException
public GeospatialSubtype registerLatitudeStripingInRadians(double width)
throws AllegroGraphException
width - in radians
AllegroGraphException
public GeospatialSubtype registerLatitudeStripingInRadians(double width,
java.lang.Double latMin,
java.lang.Double latMax,
java.lang.Double lonMin,
java.lang.Double lonMax)
throws AllegroGraphException
width - width in radianslatMin - the minimum latitude included in the strip. A null value specifies the
built-in default of the server.latMax - the maximum latitude included in the strip. A null value specifies the
built-in default of the server.lonMin - the minimum longitude included in the strip. A null value specifies the
built-in default of the server.lonMax - the maximum longitude included in the strip. A null value specifies the
built-in default of the server.
AllegroGraphException
public void addSubtype(GeospatialSubtype subtype)
throws AllegroGraphException
subtype - the GeospatialSubtype instance
AllegroGraphException
public UPI encodeUPI(GeospatialSubtype subtype,
double longitude,
double latitude)
throws AllegroGraphException
subtype - the GeospatialSubtype instance that defines the encodinglongitude - latitude -
AllegroGraphException
public UPI[] encodeUPIs(GeospatialSubtype subtype,
double[] longitude,
double[] latitude)
throws AllegroGraphException
subtype - the GeospatialSubtype instance that defines the encodinglongitude - an array of longitude valueslatitude - an array of latitude values.
AllegroGraphException
public UPI[] encodeUPIs(GeospatialSubtype subtype,
double longitude,
double[] latitude)
throws AllegroGraphException
subtype - the GeospatialSubtype instance that defines the encodinglongitude - a longitude valuelatitude - an array of latitude values.
AllegroGraphException
public UPI[] encodeUPIs(GeospatialSubtype subtype,
double[] longitude,
double latitude)
throws AllegroGraphException
subtype - the GeospatialSubtype instance that defines the encodinglongitude - an array of longitude valueslatitude - a latitude value
AllegroGraphException
public UPI[] encodeUPIs(GeospatialSubtype subtype,
double[] longlat)
throws AllegroGraphException
subtype - the GeospatialSubtype instance that defines the encodinglonglat - an array of alternating longitude and latitude values
AllegroGraphException
public java.lang.Object[] decodeUPI(UPI upi)
throws AllegroGraphException
upi -
AllegroGraphException
public java.lang.Object[] decodeUPIs(UPI[] upi)
throws AllegroGraphException
upi - an array of UPI instances
AllegroGraphException
public Cursor getStatementsInBoundingBox(GeospatialSubtype subtype,
java.lang.Object predicate,
double xMin,
double xMax,
double yMin,
double yMax,
boolean indexedOnly,
boolean includeDeleted)
throws AllegroGraphException
subtype - the GeospatialSubtype of interestpredicate - a string, UPI instance, ot Value instance that identifies
the predicate of the relevant triplesxMin - xMax - yMin - yMax - indexedOnly - if true, look only at indexed triples (this may be a lot faster
if there are many unindexed triples).includeDeleted - if true, include deleted triples in the search
AllegroGraphException
public Cursor getStatementsInRadius(GeospatialSubtype subtype,
java.lang.Object predicate,
double lon,
double lat,
double radius,
boolean indexedOnly,
boolean includeDeleted)
throws AllegroGraphException
subtype - the GeospatialSubtype of interestpredicate - a string, UPI instance, ot Value instance that identifies
the predicate of the relevant tripleslon - lat - radius - indexedOnly - if true, look only at indexed triples (this may be a lot faster
if there are many unindexed triples).includeDeleted - if true, include deleted triples in the search
AllegroGraphException
public Cursor getStatementsInHMiles(GeospatialSubtype subtype,
java.lang.Object predicate,
double lon,
double lat,
double radius,
boolean indexedOnly,
boolean includeDeleted)
throws AllegroGraphException
subtype - the GeospatialSubtype of interestpredicate - a string, UPI instance, ot Value instance that identifies
the predicate of the relevant tripleslon - lat - radius - the radius of the circle in milesindexedOnly - if true, look only at indexed triples (this may be a lot faster
if there are many unindexed triples).includeDeleted - if true, include deleted triples in the search
AllegroGraphException
public Cursor getStatementsInHKm(GeospatialSubtype subtype,
java.lang.Object predicate,
double lon,
double lat,
double radius,
boolean indexedOnly,
boolean includeDeleted)
throws AllegroGraphException
subtype - the GeospatialSubtype of interestpredicate - a string, UPI instance, ot Value instance that identifies
the predicate of the relevant tripleslon - lat - radius - the radius of the circle in kilometersindexedOnly - if true, look only at indexed triples (this may be a lot faster
if there are many unindexed triples).includeDeleted - if true, include deleted triples in the search
AllegroGraphException
public Cursor getStatementsInHRadians(GeospatialSubtype subtype,
java.lang.Object predicate,
double lon,
double lat,
double radius,
boolean indexedOnly,
boolean includeDeleted)
throws AllegroGraphException
subtype - the GeospatialSubtype of interestpredicate - a string, UPI instance, ot Value instance that identifies
the predicate of the relevant tripleslon - lat - radius - the radius of the circle in radiansindexedOnly - if true, look only at indexed triples (this may be a lot faster
if there are many unindexed triples).includeDeleted - if true, include deleted triples in the search
AllegroGraphException
public void addSphericalPredicateMapping(java.lang.String label,
GeospatialSubtype subtype)
throws AllegroGraphException
label - the URL that identifies the predicatesubtype - the GeospatialSubtype of the encoded literal
AllegroGraphException
public void addSphericalDatatypeMapping(java.lang.String label,
GeospatialSubtype subtype)
throws AllegroGraphException
label - the URL that identifies the datatypesubtype - the GeospatialSubtype of the encoded literal
AllegroGraphException
public void addCartesianPredicateMapping(java.lang.String label,
GeospatialSubtype subtype)
throws AllegroGraphException
label - the URL that identifies the predicatesubtype - the GeospatialSubtype of the encoded literal
AllegroGraphException
public void addCartesianDatatypeMapping(java.lang.String label,
GeospatialSubtype subtype)
throws AllegroGraphException
label - the URI that identifies the datatypesubtype - the GeospatialSubtype of the encoded literal
AllegroGraphException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||