We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 838b0e1 commit 9045f46Copy full SHA for 9045f46
pygmt/helpers/tempfile.py
@@ -153,6 +153,7 @@ def tempfile_from_geojson(geojson):
153
if dtype in {"int", "int64"}:
154
overflow = geojson[col].abs().max() > 2**31 - 1
155
schema["properties"][col] = "float" if overflow else "int32"
156
+ geojson[col] = geojson[col].astype(schema["properties"][col])
157
ogrgmt_kwargs["schema"] = schema
158
else: # GeoPandas v1.x.
159
# The default engine "pyogrio" doesn't support the 'schema' parameter
0 commit comments