public class ExMapDB
extends java.lang.Object
jp.ecom_plat.map.db.MapDB
を拡張するクラスです.修飾子とタイプ | フィールドと説明 |
---|---|
static ISO8601Formatter |
iso8601df
ISO8601 Formatter 紀元前対応
|
static java.sql.Timestamp |
negativeInfinity
PostgerSQL -∞ Timestamp
|
static java.sql.Timestamp |
positiveInfinity
PostgerSQL +∞ Timestamp
|
コンストラクタと説明 |
---|
ExMapDB() |
修飾子とタイプ | メソッドと説明 |
---|---|
static java.lang.String |
convertLayerIdByPubview(java.lang.String layerId,
boolean pubview)
pubview=trueならレイヤIDに_pubを付ける。
|
static boolean |
createGeometryTable(LayerInfo layerInfo,
java.lang.String geometryType,
java.lang.String[] coltype)
PostGISにテーブル作成.
|
static int |
deleteFiles(java.util.List<java.io.File> deleteFiles) |
static boolean |
deleteGeoServerFeature(java.lang.String featureType)
DELETE http://myserver:myport/geoserver/rest/workspaces/workspace/datastores/datastore/featuretypes/typename?
|
static boolean |
deleteLayerInfo(LayerInfo layerInfo)
レイヤを完全に削除する.
|
static boolean |
deleteMapInfo(MapInfo mapInfo)
地図情報の物理削除
|
static java.util.HashMap<java.lang.String,java.lang.String> |
getAttributes(FeatureResult featureResult)
属性を HashMap で取得する関数(eコミにないので追加)
|
static java.sql.Connection |
getDataSourceConnection() |
static double[] |
getFeatureDataExtent(java.lang.String featuretypeId,
java.util.Date[] timeParam)
レイヤ内の全データの外接矩形を取得
|
static long |
getHistoryFeatureId(java.lang.String layerId,
long _orgid,
java.util.Date[] timeParam)
_orgid と 時間から、gid を取得する
|
static java.sql.Timestamp[] |
getLayerTimefromMinMax(java.lang.String layerId)
レイヤの time_from の min/max を取得する。
|
static java.lang.String |
getPrivateText()
公開フラグ(_pub)の非公開時の表示テキスト
|
static java.lang.String |
getPublicText()
公開フラグ(_pub)の公開時の表示テキスト
|
static java.lang.String |
getTimeQuery(LayerInfo layerInfo,
java.util.Date[] timeParam)
eコミマップのプログラム
FeatureDB#getTimeQuery(LayerInfo, Date[]) に委譲. |
static boolean |
isNegativeInfinity(java.lang.String iso8601) |
static boolean |
isNegativeInfinity(java.sql.Timestamp timestamp) |
static boolean |
isPositiveInfinity(java.lang.String iso8601) |
static boolean |
isPositiveInfinity(java.sql.Timestamp timestamp) |
static java.lang.Boolean |
isPublic(java.lang.String pubtext)
公開フラグの表示テキストから boolean に変換する。
|
static boolean |
reloadGeoServerCatalog()
Reloads the GeoServer catalog and configuration from disk.
|
static FeatureResultList |
searchFeatureWithoutSessionGeometry(javax.servlet.http.HttpSession session,
long mapId,
java.util.Vector<LayerInfo> vecLayerInfo,
java.util.Map<java.lang.String,java.lang.String> layerQueryWhere,
int attrStatus,
java.util.Vector<FeatureSearchCondition> keywords,
int limit,
int offset,
boolean nameOnly,
int resultGeomType,
java.lang.String sortAttrId,
boolean desc,
boolean isNot,
int rangeType,
int spatialType,
double buffer,
JSONArray spatialLayer,
java.util.Vector<java.lang.Long> filterdFeatureIds,
java.lang.String attach,
java.util.Date[] timeParam)
FeatureDB.searchFeatureSessionGeometryでセッションジオメトリを無効化して空間検索範囲を追加する
|
public static java.sql.Timestamp negativeInfinity
public static java.sql.Timestamp positiveInfinity
public static final ISO8601Formatter iso8601df
public static java.sql.Connection getDataSourceConnection() throws java.sql.SQLException
java.sql.SQLException
public static boolean createGeometryTable(LayerInfo layerInfo, java.lang.String geometryType, java.lang.String[] coltype) throws java.sql.SQLException
layerInfo
- テーブルを作成するLayerInfogeometryType
- PostGISのGeometry型文字列(POINY,POLYLINE,POLYGON)coltype
- layerInfo
- the LayerInfo the tables are created forgeometryType
- the Geometry type string of PostGIS (POINY, POLYLINE, POLYGON)coltype
- java.sql.SQLException
- return true if created, false if error
public static boolean deleteMapInfo(MapInfo mapInfo) throws java.sql.SQLException
mapInfo
- java.sql.SQLException
public static boolean deleteLayerInfo(LayerInfo layerInfo) throws java.sql.SQLException
layerInfo
- 削除対象レイヤ情報java.sql.SQLException
public static boolean reloadGeoServerCatalog() throws java.net.MalformedURLException, java.io.IOException
java.net.MalformedURLException
java.io.IOException
public static boolean deleteGeoServerFeature(java.lang.String featureType) throws java.net.MalformedURLException, java.io.IOException
featureType
- java.net.MalformedURLException
java.io.IOException
public static int deleteFiles(java.util.List<java.io.File> deleteFiles) throws java.io.IOException
java.io.IOException
public static java.sql.Timestamp[] getLayerTimefromMinMax(java.lang.String layerId)
layerId
- レイヤIDpublic static boolean isNegativeInfinity(java.sql.Timestamp timestamp)
timestamp
- 判定したいTimestamppublic static boolean isNegativeInfinity(java.lang.String iso8601)
iso8601
- 判定したいTimestampのISO8601public static boolean isPositiveInfinity(java.sql.Timestamp timestamp)
timestamp
- 判定したいTimestamppublic static boolean isPositiveInfinity(java.lang.String iso8601)
iso8601
- 判定したいTimestampのISO8601public static java.lang.String getTimeQuery(LayerInfo layerInfo, java.util.Date[] timeParam)
FeatureDB#getTimeQuery(LayerInfo, Date[])
に委譲.
TimeSeriesType.HISTORY で 引数1つの場合、下記のようなクエリが作成される.
(
((time_to IS NULL) AND (time_from = '2016-06-15 10:18:21.623'::timestamp without time zone))
OR
((time_to IS NOT NULL) AND (time_from <= '2016-06-15 10:18:21.623'::timestamp without time zone) AND (time_to >= '2016-06-15 10:18:21.623'::timestamp without time zone))
)layerInfo
- 時系列種別を判断するために利用timeParam
- 時間条件nullは不可(配列要素は1つか2つまで)public static java.util.HashMap<java.lang.String,java.lang.String> getAttributes(FeatureResult featureResult)
featureResult
- eコミの地物取得結果public static long getHistoryFeatureId(java.lang.String layerId, long _orgid, java.util.Date[] timeParam)
layerId
- レイヤID_orgid
- orgidtimeParam
- 時間パラメータpublic static double[] getFeatureDataExtent(java.lang.String featuretypeId, java.util.Date[] timeParam) throws java.sql.SQLException, ParseException
featuretypeId
- 外接矩形を取得するレイヤ=テーブル名timeParam
- 時間指定(履歴レイヤの場合)featuretypeId
- the layer=table namejava.sql.SQLException
ParseException
public static java.lang.String getPublicText()
public static java.lang.String getPrivateText()
public static java.lang.Boolean isPublic(java.lang.String pubtext)
pubtext
- public static java.lang.String convertLayerIdByPubview(java.lang.String layerId, boolean pubview)
layerId
- pubview
- public static FeatureResultList searchFeatureWithoutSessionGeometry(javax.servlet.http.HttpSession session, long mapId, java.util.Vector<LayerInfo> vecLayerInfo, java.util.Map<java.lang.String,java.lang.String> layerQueryWhere, int attrStatus, java.util.Vector<FeatureSearchCondition> keywords, int limit, int offset, boolean nameOnly, int resultGeomType, java.lang.String sortAttrId, boolean desc, boolean isNot, int rangeType, int spatialType, double buffer, JSONArray spatialLayer, java.util.Vector<java.lang.Long> filterdFeatureIds, java.lang.String attach, java.util.Date[] timeParam) throws java.lang.Exception
java.lang.Exception