Skip to content

Commit ca0ef48

Browse files
committed
bool isPolarCoordinateSystem() に変更
1 parent 2a9d14a commit ca0ef48

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

include/plateau/dataset/gml_file.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace plateau::dataset {
2222
void setPath(const std::string& path);
2323
MeshCode getMeshCode() const;
2424
double getEpsg() const;
25-
double usePolarConversion() const;
25+
bool isPolarCoordinateSystem() const;
2626
const std::string& getFeatureType() const;
2727
PredefinedCityModelPackage getPackage() const;
2828
std::string getAppearanceDirectoryPath() const;

src/dataset/gml_file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ namespace plateau::dataset {
6060
}
6161
}
6262

63-
double GmlFile::usePolarConversion() const {
63+
bool GmlFile::isPolarCoordinateSystem() const {
6464
double epsg = getEpsg();
6565
// 平面直角座標系の区分についてはこちらを参照してください :
6666
// https://www.mlit.go.jp/plateaudocument/toc9/toc9_08/toc9_08_04/

src/polygon_mesh/mesh_factory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ namespace plateau::polygonMesh {
5656
auto& out_vertices = out_mesh.getVertices();
5757
out_vertices.reserve(vertices_lat_lon.size());
5858
for (const auto& lat_lon : vertices_lat_lon) {
59-
auto xyz = geo_reference.convert(lat_lon, false, gml.usePolarConversion());
59+
auto xyz = geo_reference.convert(lat_lon, false, gml.isPolarCoordinateSystem());
6060
out_vertices.push_back(xyz);
6161
}
6262
assert(out_vertices.size() == vertices_lat_lon.size());

src/polygon_mesh/polygon_mesh_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ namespace plateau::polygonMesh {
6262
}
6363
const auto& gml = plateau::dataset::GmlFile(city_model.getGmlPath());
6464
auto city_center = (envelope.getLowerBound() + envelope.getUpperBound()) / 2.0;
65-
return geometry::GeoReference(coordinate_zone_id).convert(city_center, true, gml.usePolarConversion());
65+
return geometry::GeoReference(coordinate_zone_id).convert(city_center, true, gml.isPolarCoordinateSystem());
6666
}
6767

6868
/**

test/test_gml_file.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ namespace plateau::dataset {
1616
TEST_F(GmlFileTest, get_epsg) { // NOLINT
1717
auto info1 = GmlFile(std::string("foobar/udx/unf/08EE751_unf_10169_water_op.gml"));
1818
ASSERT_EQ(10169, info1.getEpsg());
19-
ASSERT_FALSE(info1.usePolarConversion());
19+
ASSERT_FALSE(info1.isPolarCoordinateSystem());
2020

2121
auto info2 = GmlFile(std::string("foobar/udx/bldg/53392546_bldg_6697_2_op.gml"));
2222
ASSERT_EQ(6697, info2.getEpsg());
23-
ASSERT_TRUE(info2.usePolarConversion());
23+
ASSERT_TRUE(info2.isPolarCoordinateSystem());
2424
}
2525

2626
// fetch のテストは test_dataset.cpp にあります。

test/test_mesh_extractor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ namespace plateau::polygonMesh {
224224
const std::shared_ptr<const CityModel> city_model = load(gml_path, params);
225225

226226
const auto& gml = plateau::dataset::GmlFile((city_model->getGmlPath()));
227-
ASSERT_FALSE(gml.usePolarConversion());
227+
ASSERT_FALSE(gml.isPolarCoordinateSystem());
228228

229229
auto model = MeshExtractor::extract(*city_model, mesh_extract_options);
230230
const auto& lod_node = model->getRootNodeAt(0);

0 commit comments

Comments
 (0)