Geotoolkit

Need embedded epsg database

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.03
  • Fix Version/s: 3.05
  • Component/s: Referencing
  • Labels:

Description

For web application like Java-Web-Start, Applets or JavaFX a lite epsg database would be usefull.
Solution can be using WKT files or an embeded javadb with a limited number projection to reduce the weight of the jar.
The startup time of such a database should be minimal to avoid any loading time in the application.

Issue Links

Activity

Hide
Martin Desruisseaux added a comment - 16/Aug/2009 22:19

Actually an EPSG factory backed by a WKT property file is already supported:

The hard thing is to choose which CRS to select. Geotoolkit is probably better to either provides all CRS (which is the case with the connection to the EPSG factory) or, if only a subset as WKT is wanted, let user choose that subset (we could not justify the inclusion of CRS used in France and not the one used in Italy for example, and if we include the CRS of every countries we will basically be back to the full EPSG database). If a user wants to provide its own CRS as WKT, the only thing he need to do is to provides the following files on some JAR in its classpath:

  • org/geotoolkit/referencing/factory/espg/epsg.properties

There is nothing special to do apart providing such file - it should be detected and used automatically. If this file appears more than once on the classpath, their content will be merged.

Show
Martin Desruisseaux added a comment - 16/Aug/2009 22:19 Actually an EPSG factory backed by a WKT property file is already supported: The hard thing is to choose which CRS to select. Geotoolkit is probably better to either provides all CRS (which is the case with the connection to the EPSG factory) or, if only a subset as WKT is wanted, let user choose that subset (we could not justify the inclusion of CRS used in France and not the one used in Italy for example, and if we include the CRS of every countries we will basically be back to the full EPSG database). If a user wants to provide its own CRS as WKT, the only thing he need to do is to provides the following files on some JAR in its classpath:
  • org/geotoolkit/referencing/factory/espg/epsg.properties
There is nothing special to do apart providing such file - it should be detected and used automatically. If this file appears more than once on the classpath, their content will be merged.
Hide
Martin Desruisseaux added a comment - 14/Oct/2009 13:25

Instructions about how to provide an embedded EPSG database have been added there:

http://www.geotoolkit.org/modules/referencing/faq.html#embedded

The javadoc of PropertyEpsgFactory has also been expanded with a "troubleshooting" section.

Show
Martin Desruisseaux added a comment - 14/Oct/2009 13:25 Instructions about how to provide an embedded EPSG database have been added there: http://www.geotoolkit.org/modules/referencing/faq.html#embedded The javadoc of PropertyEpsgFactory has also been expanded with a "troubleshooting" section.

People

Vote (0)
Watch (0)

Dates

  • Created:
    15/Aug/2009 17:26
    Updated:
    13/Apr/2011 15:50
    Resolved:
    13/Apr/2011 15:50