Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OGC GeoPackage implementation - 3.3 #317

Closed

Conversation

diegomigliavacca
Copy link
Contributor

http://tracker.deegree.org/deegree-services/ticket/613

"The GeoPackage specification describes an open, standards-based, platform-independent, portable, self-describing, compact format for transferring geospatial information. It is a set of conventions for SQLite to store interoperable Features and/or Tiles on a common base" (opengis/geopackage GitHub repository).

In order to access a Geopackage file, you need to create a JDBC connection which points to the Geopackage file.

<JDBCConnection xmlns="http://www.deegree.org/jdbc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" configVersion="3.0.0" xsi:schemaLocation="http://www.deegree.org/jdbc http://schemas.deegree.org/jdbc/3.0.0/jdbc.xsd">
  <Url>jdbc:sqlite:/home/user/World.gpkg</Url>
  <User>null</User>
  <Password>null</Password>
</JDBCConnection>

User and Password can just to be set to "null", given that GeoPackage is based on SQLite.

For the feature part, the user needs to configure in Deegree:
an SQL feature store;
a WFS service;
a Feature Layer.

For the tile part, the user needs to configure:
a WMTS service;
a Gpkg Tile Store;
a Tile Layer.

Configuration of a Gpkg Tile Store (example):

<GpkgTileStore xmlns="http://www.deegree.org/datasource/tile/gpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.deegree.org/datasource/tile/gpkg http://schemas.deegree.org/datasource/tile/gpkg/3.2.0/geopackage.xsd" configVersion="3.2.0">

  <TileDataSet>
    <JDBCConnId>gpkg</JDBCConnId>
    <Identifier>gpkg_tilelayer</Identifier>
    <TileMapping table="fromosm_tiles"/>
    <!-- [0..1]: the mime type of the desired image output format. Default is image/png -->
    <ImageFormat>image/png</ImageFormat>
</TileDataSet>

</GpkgTileStore>

@tfr42 tfr42 added feature and removed feature labels Jul 10, 2014
@tfr42 tfr42 added this to the 3.4 milestone Jul 10, 2014
@tfr42
Copy link
Member

tfr42 commented Jul 24, 2014

Dear Diego,
Thanks for the contribution. Any chance to prepare a pull request for 3.4 master as well? Since it is a new feature we would like to have it in the next minor release 3.4.

@tfr42 tfr42 removed this from the 3.4 milestone Jul 24, 2014
@diegomigliavacca
Copy link
Contributor Author

I'm developing this feature for the version 3.4 too. Unfortunately recently the connection to the database in Deegree changed a lot, so I need time to develop something that works.

@diegomigliavacca
Copy link
Contributor Author

It seems to work with the OpenJDK, but not with the OracleJDK. On my PC it passes the integration tests with the OracleJDK too.

@tfr42
Copy link
Member

tfr42 commented Aug 5, 2014

Thank you very much for providing the pull request for 3.4. We truly appreciate your time and effort.

@tfr42
Copy link
Member

tfr42 commented Aug 5, 2014

Replaced by #333

@tfr42 tfr42 added duplicate and removed feature labels Aug 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants