正在显示
3 个修改的文件
包含
4 行增加
和
4 行删除
@@ -160,7 +160,7 @@ namespace DmpWfs | @@ -160,7 +160,7 @@ namespace DmpWfs | ||
160 | if (pPgsqlConn != nullptr) | 160 | if (pPgsqlConn != nullptr) |
161 | { | 161 | { |
162 | boost::property_tree::ptree ptFeatureType; | 162 | boost::property_tree::ptree ptFeatureType; |
163 | - std::string srs = "EPSG:" + std::__cxx11::to_string(project->crs().srid()); | 163 | + std::string srs = "EPSG:" + layer->srid(); |
164 | ptFeatureType.add("<xmlattr>.id", i); | 164 | ptFeatureType.add("<xmlattr>.id", i); |
165 | ptFeatureType.add("Name", layer->name()); | 165 | ptFeatureType.add("Name", layer->name()); |
166 | ptFeatureType.add("Title", layer->title()); | 166 | ptFeatureType.add("Title", layer->title()); |
@@ -1086,7 +1086,7 @@ ST_GeometryFromText('POLYGON((%f %f, %f %f, %f %f, %f %f, %f %f))',%s),\ | @@ -1086,7 +1086,7 @@ ST_GeometryFromText('POLYGON((%f %f, %f %f, %f %f, %f %f, %f %f))',%s),\ | ||
1086 | } | 1086 | } |
1087 | else | 1087 | else |
1088 | { | 1088 | { |
1089 | - sql = GetRegionQuerySQL(layer, pExtent.get(), format("%d", layer->crs().srid()), strRegionLayerNameDefs, strRegionColDefs, strLayerDef); | 1089 | + sql = GetRegionQuerySQL(layer, pExtent.get(), layer->srid(), strRegionLayerNameDefs, strRegionColDefs, strLayerDef); |
1090 | } | 1090 | } |
1091 | 1091 | ||
1092 | pVectorVacuateLayer = layer->GetCurrentScaleTable(1 / this->m_dR); | 1092 | pVectorVacuateLayer = layer->GetCurrentScaleTable(1 / this->m_dR); |
@@ -1282,7 +1282,7 @@ ST_GeometryFromText('POLYGON((%f %f, %f %f, %f %f, %f %f, %f %f))',%s),\ | @@ -1282,7 +1282,7 @@ ST_GeometryFromText('POLYGON((%f %f, %f %f, %f %f, %f %f, %f %f))',%s),\ | ||
1282 | } | 1282 | } |
1283 | else | 1283 | else |
1284 | { | 1284 | { |
1285 | - sql = GetRegionQuerySQL(layer, pExtent.get(), format("%d", layer->crs().srid()), strRegionLayerNameDefs, strRegionColDefs, strLayerDef); | 1285 | + sql = GetRegionQuerySQL(layer, pExtent.get(), layer->srid(), strRegionLayerNameDefs, strRegionColDefs, strLayerDef); |
1286 | } | 1286 | } |
1287 | 1287 | ||
1288 | pVectorVacuateLayer = layer->GetCurrentScaleTable(1 / this->m_dR); | 1288 | pVectorVacuateLayer = layer->GetCurrentScaleTable(1 / this->m_dR); |
@@ -18,7 +18,7 @@ namespace tileserver | @@ -18,7 +18,7 @@ namespace tileserver | ||
18 | DmpEsriBundleV2Provider::DmpEsriBundleV2Provider(const std::string& rootPath) | 18 | DmpEsriBundleV2Provider::DmpEsriBundleV2Provider(const std::string& rootPath) |
19 | : DmpAbstractEsriBundleProvider(rootPath) | 19 | : DmpAbstractEsriBundleProvider(rootPath) |
20 | { | 20 | { |
21 | - rootPath_ ="/mnt/d/Code/tiles/SDYX_WEIP_2021_M07_FS2K/Layers/_alllayers"; | 21 | + //rootPath_ ="/mnt/d/Code/tiles/SDYX_WEIP_2021_M07_FS2K/Layers/_alllayers"; |
22 | } | 22 | } |
23 | void DmpEsriBundleV2Provider::WriteTile(const int row, const int col, const int level, const std::string& format, DmpServerResponse& response) | 23 | void DmpEsriBundleV2Provider::WriteTile(const int row, const int col, const int level, const std::string& format, DmpServerResponse& response) |
24 | { | 24 | { |
请
注册
或
登录
后发表评论