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.
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:
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.
- http://www.geotoolkit.org/apidocs/org/geotoolkit/referencing/factory/epsg/PropertyEpsgFactory.html
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.