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

GeoJSON オブジェクトの基本クラス More...

#include <GeoJSON.hpp>

Inherited by s3d::GeoJSONFeature, s3d::GeoJSONFeatureCollection, and s3d::GeoJSONGeometry.

Public Member Functions

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...
 

Protected Attributes

Array< double > m_bbox
 バウンディングボックス More...
 
GeoJSONType m_type = GeoJSONType::Feature
 GeoJSON type. More...
 

Detailed Description

GeoJSON オブジェクトの基本クラス

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

Constructor & Destructor Documentation

◆ GeoJSONBase() [1/2]

SIV3D_NODISCARD_CXX20 s3d::GeoJSONBase::GeoJSONBase ( )
default

デフォルトコンストラクタ

◆ GeoJSONBase() [2/2]

SIV3D_NODISCARD_CXX20 s3d::GeoJSONBase::GeoJSONBase ( const JSON object)

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

Parameters
objectJSON データ

Member Function Documentation

◆ getBBox()

const Array<double>& s3d::GeoJSONBase::getBBox ( ) const
noexcept

バウンディングボックスデータを返します。

Returns
バウンディングボックスデータ

◆ getType()

GeoJSONType s3d::GeoJSONBase::getType ( ) const
noexcept

GeoJSON type を返します。

Returns
このオブジェクトの GeoJSON type

Member Data Documentation

◆ m_bbox

Array<double> s3d::GeoJSONBase::m_bbox
protected

バウンディングボックス

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

◆ m_type

GeoJSONType s3d::GeoJSONBase::m_type = GeoJSONType::Feature
protected

GeoJSON type.


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