@@ -82,8 +82,8 @@ namespace plateau::geometry {
8282 * 平面直角座標系の判定を含む処理です
8383 * 平面直角座標の場合はunprojectして緯度経度に変換してから判定します。
8484 */
85- bool containsInPolar (TVec3d point,const double epsg, bool ignore_height = true ) const ;
86- bool containsInPolar (const citygml::CityObject& city_obj,const double epsg, bool ignore_height = true ) const ;
85+ bool containsInPolar (TVec3d point,const int epsg, bool ignore_height = true ) const ;
86+ bool containsInPolar (const citygml::CityObject& city_obj,const int epsg, bool ignore_height = true ) const ;
8787
8888 /* *
8989 * other と交わる箇所があるかどうかを返します。
@@ -111,8 +111,11 @@ namespace plateau::geometry {
111111 * 平面直角座標判定、平面直角座標の基準点取得
112112 */
113113 struct CoordinateReferenceFactory {
114+
115+ static constexpr int default_epsg_ = 6697 ;
116+
114117 // EPSGごとのzone取得
115- static int GetZoneId (double epsg) {
118+ static int GetZoneId (int epsg) {
116119 // 日本測地系2011(JGD2011)に基づく平面直角座標系
117120 if (epsg == 10162 ) {
118121 return 1 ; // 1系
@@ -157,7 +160,7 @@ namespace plateau::geometry {
157160 }
158161
159162 // EPSGごとの基準点取得
160- static GeoCoordinate GetReferencePoint (double epsg) {
163+ static GeoCoordinate GetReferencePoint (int epsg) {
161164 const int zone = GetZoneId (epsg);
162165 if (zone != 0 )
163166 return GetReferencePointByZone (zone);
@@ -212,7 +215,7 @@ namespace plateau::geometry {
212215 }
213216
214217 // 極座標系・平面直角座標系判定
215- static bool IsPolarCoordinateSystem (double epsg) {
218+ static bool IsPolarCoordinateSystem (int epsg) {
216219 // 平面直角座標系の区分についてはこちらを参照してください :
217220 // https://www.mlit.go.jp/plateaudocument/toc9/toc9_08/toc9_08_04/
218221 if (epsg >= 10162 && epsg <= 10174 ) {
0 commit comments