Skip to content

Fixed shapefile read from remote url#1820

Merged
AndreiKingsley merged 2 commits intomasterfrom
read_shapefile_fix
Apr 21, 2026
Merged

Fixed shapefile read from remote url#1820
AndreiKingsley merged 2 commits intomasterfrom
read_shapefile_fix

Conversation

@AndreiKingsley
Copy link
Copy Markdown
Collaborator

No description provided.

@AndreiKingsley AndreiKingsley merged commit 375a449 into master Apr 21, 2026
4 of 5 checks passed
@AndreiKingsley AndreiKingsley deleted the read_shapefile_fix branch April 21, 2026 14:51
url
} else {
val dirName = urlPath.substringAfterLast('/')
URI("${url.toString().trimEnd('/')}/$dirName.shp").toURL()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so... if the user supplies another url, something like "/path/to/shapeFile.zip", we will get "shapeFile.zip.shp" and break? I would write it a bit safer with a helpful exception message

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just followed Nikita's logic; we should research usecases and improve it in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants