Class GmlFile
GMLファイルに関する情報を保持します。
寿命管理について:
Inheritance
System.Object
GmlFile
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: PLATEAU.Dataset
Assembly: cs.temp.dll.dll
Syntax
public class GmlFile
Constructors
GmlFile(IntPtr)
Declaration
public GmlFile(IntPtr handle)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | handle |
Properties
Epsg
GMLファイルのEPSGコードを返します。 取得失敗時のデフォルト値はEPSG:6697です。
Declaration
public int Epsg { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
FeatureType
Declaration
public string FeatureType { get; }
Property Value
Type | Description |
---|---|
System.String |
GridCode
GMLファイルのGridCodeを返します。 ただし、誤った形式のGMLファイル名である等の理由でGridCodeを読み取れなかった場合は 戻り値の isValid が false になります。 戻り値が解放されるようにするためにusingを付けてください。
Declaration
public GridCode GridCode { get; }
Property Value
Type | Description |
---|---|
GridCode |
Handle
Declaration
public IntPtr Handle { get; }
Property Value
Type | Description |
---|---|
IntPtr |
Package
Declaration
public PredefinedCityModelPackage Package { get; }
Property Value
Type | Description |
---|---|
PredefinedCityModelPackage |
Path
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
CityRootPath()
都市データのルートディレクトリ、すなわち "udx"フォルダの1つ上のパスを返します。
Declaration
public string CityRootPath()
Returns
Type | Description |
---|---|
System.String |
Create(String)
GMLファイルに関する情報を保持するためのインスタンスを生成します。 実際にGMLファイルを作るわけではありません。
Declaration
public static GmlFile Create(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path |
Returns
Type | Description |
---|---|
GmlFile |
Dispose()
Declaration
public void Dispose()
Fetch(String)
GmlFileのパスがローカルPCを指す場合: GMLファイルとその関連ファイルをコピーします。 関連ファイルを探すために、GMLファイルの中身に対して文字列検索(テクスチャパスなどの記載を探す)が行われるため、 GMLファイルの容量が増えるほど処理時間が増えます。 GmlFileのパスが http で始まる場合: GMLファイルとその関連ファイルをダウンロードします。
Declaration
public GmlFile Fetch(string destinationRootPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | destinationRootPath | コピー先のルートフォルダのパスです。 |
Returns
Type | Description |
---|---|
GmlFile |
GetMaxLod()
ローカルの場合、GMLファイルの全文を検索して対応LODの最大を求めます。 サーバーの場合、APIサーバーに問い合わせて対応LODの最大を求めます。 どちらにしても時間がかかる処理になります。
Declaration
public int GetMaxLod()
Returns
Type | Description |
---|---|
System.Int32 |
SearchAllCodelistPathsInGml()
Declaration
public string[] SearchAllCodelistPathsInGml()
Returns
Type | Description |
---|---|
System.String[] |
SearchAllImagePathsInGml()
Declaration
public string[] SearchAllImagePathsInGml()
Returns
Type | Description |
---|---|
System.String[] |