deegree3 icon indicating copy to clipboard operation
deegree3 copied to clipboard

OGC GeoPackage implementation - 3.4

Open diegomigliavacca opened this issue 10 years ago • 11 comments

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).

For the feature part, the user needs to configure in Deegree: an SQL feature store; a WFS service; a JDBC connection; 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 JDBC connection (example):

<JDBCConnection configVersion="3.0.0" xmlns="http://www.deegree.org/jdbc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 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.

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>
    <Identifier>gpkg_tiledataset</Identifier>
    <File>home/user/World.gpkg</File>
    <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>

diegomigliavacca avatar Jul 30 '14 15:07 diegomigliavacca

With the OracleJDK, the build succeeded. With the OpenJDK there is the following error message:

WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked. WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.

No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.

The build has been terminated

diegomigliavacca avatar Jul 30 '14 16:07 diegomigliavacca

I tested this Geopackage implementation and it works properly. Besides, on my Pc, with the Oracle JDK, there aren't test failures during the build process using "mvn clean install -Pintegration-tests". I suggest to test it again on some other computer, maybe with OpenJDK too. Then, I think it will be possible to integrate it in Deegree.

diegomigliavacca avatar Oct 13 '14 15:10 diegomigliavacca

TravisCI failed as some artifacts could not be fetched:

[ERROR] Failed to execute goal on project deegree-core-commons: Could not resolve dependencies for project org.deegree:deegree-core-commons:jar:3.4-pre16-SNAPSHOT: The following artifacts could not be resolved: jogl:jogl:jar:1.1.2, org.deegree:deegree-ogcschemas:jar:20120804: Could not find artifact jogl:jogl:jar:1.1.2 in central (http://repo.maven.apache.org/maven2) -> [Help 1]

dstenger avatar Oct 14 '14 14:10 dstenger

Thank you for your contribution. Unfortunately, it cannot be merged automatically. It cannot be considered for inclusion, before this has been fixed. Please rebase it against the target branch.

MrSnyder avatar Nov 11 '14 14:11 MrSnyder

I did it. Now my branch is up to date.

diegomigliavacca avatar Nov 14 '14 15:11 diegomigliavacca

Thank you for your contribution. Your pull request has been discussed by the TMC today. Please see the following remarks from the TMC members:

  • We need at least some documentation for the deegree webservices handbook
  • And since it affects the deegree console we are in favor in move to a later stable release version of 3.4

However, we found that it is not ready yet for inclusion: The TMC would be happy if can find the time to address these shortcomings and participate.

tfr42 avatar Feb 06 '15 14:02 tfr42

I think it's a really good idea to move it to a later stable release version of 3.4. I will test this implementation again in a later stable release and I will improve it. I will contact you about the documentation for the webservices handbook.

diegomigliavacca avatar Feb 06 '15 14:02 diegomigliavacca

Dear deegree users! If someone of you would like this PR merged and want this as an official part of deegree, then please act now. Either rebase and fix the build or post a comment. Otherwise we will close this PR soon.

tfr42 avatar Nov 30 '18 10:11 tfr42

TMC consider this PR as very interesting and would like to continue. Volunteers are very welcome! Please get in contact with the TMC.

tfr42 avatar Dec 14 '18 10:12 tfr42

@diegomigliavacca Thank you for updating this pull request! Unfortunately Travis CI was not able to build and test your branch.

copierrj avatar Jan 11 '19 10:01 copierrj

Hi!! Yes, removing that registerDriver was the main task. For the rest, you only have to upgrade the Deegree version in the pom.xml files and update the dependencies in the geopackage pom files. Then, it will work. Unfortunately, right now I don't have much free time to test this feature against different Geopackage files, raster and vector. Eventually, if someone is interested in this feature, as soon as possible I will test it on my PC and I will make the code available through GitHub.

diegomigliavacca avatar Jan 11 '19 16:01 diegomigliavacca

Based on @diegomigliavacca work a new PR #1437 has been created to support target version 3.5

tfr42 avatar Dec 19 '22 19:12 tfr42

The TMC decided to close this PR in favor of #1437

  • #1437

stephanr avatar Nov 30 '23 11:11 stephanr