Search Results for

    Show / Hide Table of Contents

    Class CityModel

    GMLファイルをパースして得られる街のモデルです。 0個以上の CityObject を保持します。

    Inheritance
    System.Object
    CityModel
    Namespace: PLATEAU.CityGML
    Assembly: cs.temp.dll.dll
    Syntax
    public sealed class CityModel : IDisposable

    Properties

    Handle

    セーフハンドルを取得します。

    Declaration
    public IntPtr Handle { get; }
    Property Value
    Type Description
    IntPtr

    RootCityObjects

    CityModel のトップレベルにある CityObject の一覧を返します。

    Declaration
    public ReadOnlyCollection<CityObject> RootCityObjects { get; }
    Property Value
    Type Description
    ReadOnlyCollection<CityObject>

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Finalize()

    Declaration
    protected void Finalize()

    GetCenterPoint(Int32)

    cityModel の中心点を返します。 また GMLファイルから cityModel の Envelope を読み取れない場合は、 中心点が分からないので原点座標を返します。

    Declaration
    public PlateauVector3d GetCenterPoint(int coordinateZoneID)
    Parameters
    Type Name Description
    System.Int32 coordinateZoneID
    Returns
    Type Description
    PlateauVector3d

    GetCityObjectById(String)

    idから CityObject を返します。 該当idのものがない場合は を投げます。

    Declaration
    public CityObject GetCityObjectById(string id)
    Parameters
    Type Name Description
    System.String id
    Returns
    Type Description
    CityObject

    GetCityObjectsByType(CityObjectType)

    CityModelのtypeタイプの全てのCityObjectを返します。

    Declaration
    public CityObject[] GetCityObjectsByType(CityObjectType type)
    Parameters
    Type Name Description
    CityObjectType type

    取得したい都市オブジェクトのタイプ

    Returns
    Type Description
    CityObject[]

    typeタイプの全てのCityObject

    In This Article
    Back to top PLATEAU SDK for Unity