kopia lustrzana https://github.com/JOSM/MapWithAI
BoundingBoxMapWithAIDownloader: Fix issue where conflated Esri servers would fail
Signed-off-by: Taylor Smock <tsmock@fb.com>pull/1/head v1.9.8
rodzic
98031cc0f3
commit
bdd2d5bafe
|
@ -173,7 +173,7 @@ public class BoundingBoxMapWithAIDownloader extends BoundingBoxDownloader {
|
||||||
if (Arrays.asList("text/json", "application/json", "application/geo+json").contains(contentType)
|
if (Arrays.asList("text/json", "application/json", "application/geo+json").contains(contentType)
|
||||||
// Fall back to Esri Feature Server check. They don't always indicate a json
|
// Fall back to Esri Feature Server check. They don't always indicate a json
|
||||||
// return type. :(
|
// return type. :(
|
||||||
|| this.info.getSourceType() == MapWithAIType.ESRI_FEATURE_SERVER) {
|
|| (this.info.getSourceType() == MapWithAIType.ESRI_FEATURE_SERVER && !this.info.isConflated())) {
|
||||||
ds = GeoJSONReader.parseDataSet(source, progressMonitor);
|
ds = GeoJSONReader.parseDataSet(source, progressMonitor);
|
||||||
if (info.getReplacementTags() != null) {
|
if (info.getReplacementTags() != null) {
|
||||||
GetDataRunnable.replaceKeys(ds, info.getReplacementTags());
|
GetDataRunnable.replaceKeys(ds, info.getReplacementTags());
|
||||||
|
|
Ładowanie…
Reference in New Issue