OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::GeoJSONFeature Class Reference

GeoJSON Feature オブジェクト More...

#include <GeoJSON.hpp>

Inherits s3d::GeoJSONBase.

Public Member Functions

SIV3D_NODISCARD_CXX20 GeoJSONFeature (const JSON &object, FlipY flipY=FlipY::Yes)
 GeoJSON Feature オブジェクトを作成します。 More...
 
const GeoJSONGeometrygetGeometry () const noexcept
 GeoJSONGeometry データを返します。 More...
 
const JSONgetProperties () const noexcept
 GeoJSON Feature の properties を返します。 More...
 
const std::variant< std::monostate, String, double > & getID () const noexcept
 GeoJSON Feature の id を返します。 More...
 
- Public Member Functions inherited from s3d::GeoJSONBase
SIV3D_NODISCARD_CXX20 GeoJSONBase ()=default
 デフォルトコンストラクタ More...
 
SIV3D_NODISCARD_CXX20 GeoJSONBase (const JSON &object)
 GeoJSON オブジェクトを作成します。 More...
 
const Array< double > & getBBox () const noexcept
 バウンディングボックスデータを返します。 More...
 
GeoJSONType getType () const noexcept
 GeoJSON type を返します。 More...
 

Friends

void Formatter (FormatData &formatData, const GeoJSONFeature &feature)
 

Additional Inherited Members

- Protected Attributes inherited from s3d::GeoJSONBase
Array< double > m_bbox
 バウンディングボックス More...
 
GeoJSONType m_type = GeoJSONType::Feature
 GeoJSON type. More...
 

Detailed Description

GeoJSON Feature オブジェクト

https://tools.ietf.org/html/rfc7946#section-3.2

Constructor & Destructor Documentation

◆ GeoJSONFeature()

SIV3D_NODISCARD_CXX20 s3d::GeoJSONFeature::GeoJSONFeature ( const JSON object,
FlipY  flipY = FlipY::Yes 
)

GeoJSON Feature オブジェクトを作成します。

Parameters
objectJSON データ

Member Function Documentation

◆ getGeometry()

const GeoJSONGeometry& s3d::GeoJSONFeature::getGeometry ( ) const
noexcept

GeoJSONGeometry データを返します。

Returns
GeoJSONGeometry データ

◆ getID()

const std::variant<std::monostate, String, double>& s3d::GeoJSONFeature::getID ( ) const
noexcept

GeoJSON Feature の id を返します。

Returns
GeoJSON Feature の id

◆ getProperties()

const JSON& s3d::GeoJSONFeature::getProperties ( ) const
noexcept

GeoJSON Feature の properties を返します。

Returns
GeoJSON Feature の properties

Friends And Related Function Documentation

◆ Formatter

void Formatter ( FormatData formatData,
const GeoJSONFeature feature 
)
friend

The documentation for this class was generated from the following file: