Skip to content

Commit f18b5fc

Browse files
Merge pull request #1950 from kili-technology/merge-pre-25.2.1/main-to-release-25.2.1
Merge pre 25.2.1/main to release 25.2.1
2 parents c680370 + e153c9b commit f18b5fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/kili/services/export/format/geojson/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ def process_and_save(self, assets: List[Dict], output_filename: Path) -> None:
6969

7070
labels_folder = self.base_folder / "labels"
7171
labels_folder.mkdir(parents=True, exist_ok=True)
72-
72+
project_type = self.project.get("inputType")
7373
geotiff_assets = [
7474
asset
7575
for asset in assets
76-
if is_geotiff_asset_with_lat_lon_coords(asset, self.kili.http_client)
76+
if project_type == "GEOSPATIAL"
77+
or is_geotiff_asset_with_lat_lon_coords(asset, self.kili.http_client)
7778
]
7879
if len(geotiff_assets) < len(assets):
7980
self.logger.warning(

0 commit comments

Comments
 (0)