File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1010import pyarrow as pa
1111from pyproj import CRS , Transformer
1212
13- from lonboard ._constants import EXTENSION_NAME , OGC_84
13+ from lonboard ._constants import EPSG_4326 , EXTENSION_NAME , OGC_84
1414from lonboard ._geoarrow .crs import get_field_crs
1515from lonboard ._geoarrow .extension_types import CoordinateDimension
1616from lonboard ._utils import get_geometry_column_index
@@ -77,6 +77,12 @@ def reproject_column(
7777 if existing_crs == to_crs :
7878 return field , column
7979
80+ # If projecting to OGC_84, also check if existing CRS is EPSG_4326, which when
81+ # passing always_xy is equivalent.
82+ if to_crs == OGC_84 :
83+ if existing_crs == EPSG_4326 :
84+ return field , column
85+
8086 # NOTE: Not sure the best place to put this warning
8187 warnings .warn ("Input being reprojected to EPSG:4326 CRS" )
8288
You can’t perform that action at this time.
0 commit comments