Class Geometry
建築物の形状と見た目の情報を保持します。 CityObject がGeometryを保持します。 Geometry は Polygon , 子Geometry を保持します。
Inherited Members
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.CityGML
Assembly: cs.temp.dll.dll
Syntax
public class Geometry : AppearanceTarget
Constructors
Geometry(IntPtr)
Declaration
public Geometry(IntPtr handle)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | handle |
Properties
ChildGeometryCount
子の Geometry の数を返します。
Declaration
public int ChildGeometryCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
GeometryDescendantsDFS
子孫の Geometry を再帰ですべてイテレートします。自分自身を含みます。 イテレートの順番は DFS(深さ優先探索)です。
Declaration
public IEnumerable<Geometry> GeometryDescendantsDFS { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Geometry> |
LineStringCount
LineString の数を返します。 TODO LineString の取得は未実装です。 GMLファイルが LineString を含むケースが今のところ見当たらないため
Declaration
public int LineStringCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
LOD
LOD (Level Of Detail) を取得します。 LOD は 0 がもっとも簡略化された形状であり、数字が上がるほど形状が詳細であることを意味します。
Declaration
public int LOD { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PolygonCount
Polygon の数を返します。
Declaration
public int PolygonCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Polygons
Polygon をforeachやLinqで回したい時に利用できます。
Declaration
public IEnumerable<Polygon> Polygons { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Polygon> |
SRSName
SRSName を取得します。 SRSNameは典型的には次のようなURL形式の文字列になるはずです。 例: "http://www.opengis.net/def/crs/EPSG/0/6697"
Declaration
public string SRSName { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
Declaration
public GeometryType Type { get; }
Property Value
Type | Description |
---|---|
GeometryType |
Methods
GetChildGeometry(Int32)
インデックス指定で子の Geometry を1つ返します。
Declaration
public Geometry GetChildGeometry(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
Geometry |
GetPolygon(Int32)
インデックス指定で Polygon を1つ返します。
Declaration
public Polygon GetPolygon(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
Polygon |
ToString()
デバッグ用に自身に関する情報を文字列で返します。
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()