|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.c5corp.c5utm.C5UTM
public class C5UTM
C5UTM contains static methods for accessing the data in a C5 Landscape database installation.
Constructor Summary | |
---|---|
C5UTM()
|
Method Summary | |
---|---|
static java.lang.String |
deleteDem(java.lang.String id)
boolean deleteDem(String id)
This method drops a dem from the database according to its id. |
static java.lang.String |
deleteDem(java.lang.String id,
C5UTMconfs confs)
String deleteDem(String id, C5UTMconfs conf)
This method drops a dem from the database according to its id. |
static DemMetadata |
findDem(int zone,
int easting,
int northing,
int easting_meters,
int northing_meters,
java.sql.Connection connection)
Given an area represented by the methods parameters, a DemMetadata object representing a Dem that encloses the given area. |
static java.util.Vector |
findDemNameContains(java.lang.String str,
C5UTMconfs confs,
java.sql.Connection connection)
Deprecated. since version 2.0 |
static java.util.Vector |
findDemNameContains(java.lang.String str,
java.sql.Connection connection)
Vector findDemNameContains(String str, C5UTMconfs conf)
This method will normally return a Vector with either 0 or more elements
of type DemMetadata. |
static java.util.Vector |
findExactDemNames(java.lang.String str,
C5UTMconfs confs,
java.sql.Connection connection)
Deprecated. since version 2.0 |
static java.util.Vector |
findExactDemNames(java.lang.String str,
java.sql.Connection connection)
Vector findExactDemNames(String str, C5UTMconfs conf)
Finds an exact match for a dem name from the file_info field of DEM_METADATA. |
static java.util.Vector<StatisticalPoint> |
findSimilarPoints(StatisticalPoint input,
double tolerance,
java.sql.Connection connection)
Given an input point and a connection object, returns a Vector of most similar points. |
static java.util.Vector<DemMetadata> |
getAllDemMetadata(java.sql.Connection connection)
gets all the Dem meta data objects from the database |
static UtmCoordinatePairElev[][] |
getCoordinatePairElevArray(int zone,
int easting,
int northing,
int easting_meters,
int northing_meters,
java.sql.Connection connection)
This method is similar to the getPoints method in this class, (which returns a more powerful Points object) in that it has the same method signature and performs a similar function, but has some notable differences. |
static DemMetadata |
getDemMetadata(java.lang.String id,
java.sql.Connection connection)
Searches the DEM_METADATA.DEM_METADATA_id field for a matching DEM_METADATA_id, returning either a DemMetadata object, or null if there is no such DEM_METADATA_id. |
static java.util.Vector |
getDemMetadataSearch(java.lang.String queryStr,
java.sql.Connection connection)
public static Vector getDemMetadataSearch(String query)
Strings are searched in the DEM_METADATA.file_info field (case insensitve), and a Vector
of DemMetadata objects is returned that match the search; possibly null,
if no matches are found. |
static java.util.Vector |
getGrids(java.sql.Connection connection)
Gets DemMetadata from the database and returns it as a Vector of Grid objects with DemMetadata objects. |
static Point |
getPoint(int zone,
int easting,
int northing,
java.sql.Connection connection)
getPoint takes the UTM zone, easting, and northing values of a target site. |
static Point |
getPointById(java.lang.String id,
java.sql.Connection connection)
Given the database id (which is the primary key field) of the record, this method returns a Point object for the point, factory method approach. |
static Points |
getPoints(int zone,
int easting,
int northing,
int easting_meters,
int northing_meters,
java.sql.Connection connection)
returns a Points object - factory method approach Note that some or all requested Points might not be in the database. |
static StatisticalPoint |
getStatisticalPoint(int zone,
int easting,
int northing,
java.sql.Connection connection)
getStatisticalPoint takes the UTM zone, easting, and northing values of a target site. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public C5UTM()
Method Detail |
---|
public static Point getPoint(int zone, int easting, int northing, java.sql.Connection connection)
zone
- the UTM zoneeasting
- the UTM eastingnorthing
- the UTM northingconnection
- the database connection object
DbHelper
,
Point
public static StatisticalPoint getStatisticalPoint(int zone, int easting, int northing, java.sql.Connection connection)
zone
- the UTM zoneeasting
- the UTM eastingnorthing
- the UTM northingconnection
- the database connection object
DbHelper
,
StatisticalPoint
public static java.util.Vector<StatisticalPoint> findSimilarPoints(StatisticalPoint input, double tolerance, java.sql.Connection connection)
input
- the input pointtolerance
- a +/- range applied to the standard deviation metricconnection
- the database connection object
DbHelper
,
StatisticalPoint
public static Point getPointById(java.lang.String id, java.sql.Connection connection)
id
- the database id for the desired recordconnection
- the database connection object
DbHelper
public static UtmCoordinatePairElev[][] getCoordinatePairElevArray(int zone, int easting, int northing, int easting_meters, int northing_meters, java.sql.Connection connection)
zone
- the UTM zoneeasting
- the UTM eastingnorthing
- the UTM northingeasting_meters
- meters east of easting-northing requestednorthing_meters
- meters north of easting-northing requestedconnection
- the database connection object
getPoints(int, int, int, int, int, java.sql.Connection)
,
UtmCoordinatePairElev
public static DemMetadata findDem(int zone, int easting, int northing, int easting_meters, int northing_meters, java.sql.Connection connection)
zone
- the UTM zoneeasting
- the UTM eastingnorthing
- the UTM northingeasting_meters
- meters east of easting-northing requestednorthing_meters
- meters north of easting-northing requestedconnection
- the database connection object
public static Points getPoints(int zone, int easting, int northing, int easting_meters, int northing_meters, java.sql.Connection connection)
zone
- the UTM zoneeasting
- the UTM eastingnorthing
- the UTM northingeasting_meters
- meters east of easting-northing requestednorthing_meters
- meters north of easting-northing requestedconnection
- the database connection object
DbHelper
public static java.util.Vector getDemMetadataSearch(java.lang.String queryStr, java.sql.Connection connection)
public static Vector getDemMetadataSearch(String query)
Strings are searched in the DEM_METADATA.file_info field (case insensitve), and a Vector
of DemMetadata objects is returned that match the search; possibly null,
if no matches are found. The search string can contain double quoted literals, otherwise
the arguments are split on white space and search withed 'and' logic.
queryStr
- the query stringconnection
- the database connection object
DbHelper
public static java.util.Vector<DemMetadata> getAllDemMetadata(java.sql.Connection connection)
connection
- the database connection object
public static java.util.Vector getGrids(java.sql.Connection connection)
connection
- the database connection object
Grid
public static DemMetadata getDemMetadata(java.lang.String id, java.sql.Connection connection)
id
- the query idconnection
- the database connection object
DbHelper
public static java.util.Vector findExactDemNames(java.lang.String str, java.sql.Connection connection)
Vector findExactDemNames(String str, C5UTMconfs conf)
Finds an exact match for a dem name from the file_info field of DEM_METADATA.
This method will normally return a Vector with either 0 or 1 elements. The
objects in the Vector are DemMetadata objects.
If it returns more elements, you may wish to investigate
that there is not a duplicate map in the database.
If you have a confs object available, use this version.
str
- the query stringconnection
- the database connection object
DemMetadata
,
DbHelper
public static java.util.Vector findExactDemNames(java.lang.String str, C5UTMconfs confs, java.sql.Connection connection)
Vector findExactDemNames(String str)
Finds an exact match for a dem name from the file_info field of DEM_METADATA.
This method will normally return a Vector with either 0 or 1 element
of type DemMetadata. If it returns more elements, you may wish to investigate
that there is not a duplicate map in the database. This version was deprecated
because the method was retooled to work without a confs object.
str
- the query stringconfs
- the configuration objectconnection
- the database connection object
DemMetadata
,
C5UTMconfs
,
DbHelper
public static java.util.Vector findDemNameContains(java.lang.String str, java.sql.Connection connection)
Vector findDemNameContains(String str, C5UTMconfs conf)
This method will normally return a Vector with either 0 or more elements
of type DemMetadata. It searches the file_info field of DEM_METADATA for a
subsring containing the query string. If you have a confs
object available, use this version. It is faster not to make a new C5UTMconfs.
str
- the query stringconnection
- the database connection object
DemMetadata
,
C5UTMconfs
,
DbHelper
public static java.util.Vector findDemNameContains(java.lang.String str, C5UTMconfs confs, java.sql.Connection connection)
Vector findDemNameContains(String str)
This method will normally return a Vector with either 0 or more elements
of type DemMetadata. It searches the file_info field of DEM_METADATA for a
subsring containing the query string. This version was deprecated
because the method was retooled to work without a confs object.
str
- the query stringconfs
- not needed - deprecated functionconnection
- the database connection object
DemMetadata
,
DbHelper
public static java.lang.String deleteDem(java.lang.String id, C5UTMconfs confs)
String deleteDem(String id, C5UTMconfs conf)
This method drops a dem from the database according to its id. The id can be found
in the RECEIPT folder. Also deletes the receipt file.
id
- the id to delete forconfs
- the configuration object
C5UTMconfs
,
DbHelper
public static java.lang.String deleteDem(java.lang.String id)
boolean deleteDem(String id)
This method drops a dem from the database according to its id. The id can be found
in the RECEIPT folder. Also deletes the receipt file. If you have a confs
object available, use boolean dropDem(int id, C5UTMconfs conf)
This overloaded version is slower because it has the overhead of making a new C5UTMconfs.
id
- the id of the DEM to delete
DbHelper
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |