Skip to content

Commit

Permalink
backwards compat
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis committed Apr 22, 2024
1 parent ca8959e commit fd197da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xvec/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ def __repr__(self) -> str:

if len(wkts) == 1:
return f"GeometryIndex([{wkts[0]}], crs={srs})"
return f"GeometryIndex(\n[{wkts[0]}\n {'\n '.join(wkts[1:])}],\ncrs={srs})".replace(
joined = "\n ".join(wkts[1:])
return f"GeometryIndex(\n[{wkts[0]}\n {joined}],\ncrs={srs})".replace(
"\n", "\n" + " " * 4
)

0 comments on commit fd197da

Please sign in to comment.