BoundingBoxMapWithAIDownloader: Fix issue where conflated Esri servers would fail

Signed-off-by: Taylor Smock <tsmock@fb.com>
pull/1/head v1.9.8
Taylor Smock 2022-01-10 07:26:47 -07:00
rodzic 98031cc0f3
commit bdd2d5bafe
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -173,7 +173,7 @@ public class BoundingBoxMapWithAIDownloader extends BoundingBoxDownloader {
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
// return type. :(
|| this.info.getSourceType() == MapWithAIType.ESRI_FEATURE_SERVER) {
|| (this.info.getSourceType() == MapWithAIType.ESRI_FEATURE_SERVER && !this.info.isConflated())) {
ds = GeoJSONReader.parseDataSet(source, progressMonitor);
if (info.getReplacementTags() != null) {
GetDataRunnable.replaceKeys(ds, info.getReplacementTags());