Modify

Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#22179 closed enhancement (fixed)

[PATCH] Add support for Geopackage in plugin OpenData

Reported by: tomasmarklund Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin opendata Version:
Keywords: Cc:

Description

The Swedish equivalent to "department of transportation" has declared that they will drop support for ESRI Shape files at the end of 2022. Instead, they will only provide data as "Geopackage" as from 2023-01-01

Yes, there are (external) online converters from Geopackage to Shape available, but it would be better if the plugin OpenData (or some other plugin) had the support for Geopackage file format directly, without having to convert file formats externally first.

Attachments (1)

22179.patch (63.7 KB ) - added by taylor.smock 2 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 by taylor.smock, 3 years ago

OpenData uses geotools. We would probably have to add gt-geopkg to geotools, and we would need to hook it up to JOSM.

in reply to:  1 comment:2 by Don-vip, 3 years ago

Replying to taylor.smock:

OpenData uses geotools. We would probably have to add gt-geopkg to geotools, and we would need to hook it up to JOSM.

yep

comment:3 by nkamapper, 2 years ago

Geopackage is also the only format supported by other public organizations such as Statistics Sweden.
Example: https://www.scb.se/en/services/open-data-api/open-geodata/localities/

by taylor.smock, 2 years ago

Attachment: 22179.patch added

comment:4 by taylor.smock, 2 years ago

Summary: Add support for Geopackage in plugin OpenData[PATCH] Add support for Geopackage in plugin OpenData

Sorry about the mail churn -- for whatever reason, my IDE was adding files to the patch that it wasn't showing me. Probably due to an interaction between svn and git, if I had to make a guess.

Anyway, I'm going to give @Don-vip a week or two to look at the changes if he wants to, and then I'll apply the patch.

comment:5 by Don-vip, 2 years ago

Hi Taylor,
Thank you! I agree with the patch you can apply it :)

comment:6 by taylor.smock, 2 years ago

No problem -- I know you aren't terribly active right now, but I did want to give you a chance to approve/disapprove of a partial refactor of opendata since you were the primary contributor to it.

comment:7 by taylor.smock, 2 years ago

Resolution: fixed
Status: newclosed

In 36024/osm:

Fix #22179: Add support for GeoPackage in OpenData

This does two things:

  1. Add gt-geopkg to the GeoTools plugin and update the GeoTools version to 27.1
  2. Adds support int OpenData for GeoPackage. This involved a refactor to make it easier to reuse code between the shapefile support and geopackage. As such, it should be much easier to add additional formats supported by GeoTools in the future, if needed.

comment:8 by taylor.smock, 2 years ago

In 36025/osm:

See #22179/r36024/osm: Add support for GeoPackage in OpenData

For whatever reason, the IDE didn't add the new files even though the UI
indicated it would.

comment:9 by taylor.smock, 2 years ago

In 36026/osm:

See #22179 (dist): Add support for GeoPackage in OpenData

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.