Hello Florian
Le 17/11/2022 à 17:39, Florian Micklich a écrit :
Clearing the cache would be a good feature, I think. Or something like
a forced option to not use the cache. We can create a Jira ticket if
you want so that this idea doesn't get lost. Just let me know where to
do that.
I suggest to create a JIRA issue there:
https://issues.apache.org/jira/projects/SIS/
Another question has come up for me. You mentioned that I can use it
to check the status of Apache SIS (…snip…) Is there an easy way to get
the column entry for a geodesic dataset as string to compare the
result to a pattern?
You can use the following code for starting:
CRSAuthorityFactory factory = CRS.getAuthorityFactory("EPSG");
Citation authority = factory.getAuthority();
System.out.println(authority);
The Citation class is derived from ISO 19115, an international standard
about metadata. That class and its properties are standardized. This
standard is used extensively by Apache SIS for many kinds of resources:
data (including GeoTIFF, netCDF, etc.), services, etc. In this
particular case we get the following output on my machine (the language
depends on the locale; only English and French supported at this time):
Citation…………………………………………………… EPSG Geodetic Parameter Dataset
├─Edition…………………………………………… 9.9.1
├─Edition date……………………………… 12 sept. 2020, 00:00:00
├─Identifier…………………………………… EPSG
├─Online resource (1 de 3)
│ ├─Linkage…………………………………https://epsg.org/
│ └─Function……………………………… Moteur de recherche
├─Online resource (2 de 3)
│ ├─Linkage…………………………………https://epsg.org/
│ └─Function……………………………… Téléchargement
└─Online resource (3 de 3)
├─Linkage…………………………………
jdbc:derby:/home/desruisseaux/Projets/SIS/Data/Databases/SpatialMetadata
├─Description……………………… Base de données géodésique EPSG version 9.9.1
sur « Apache Derby » version 10.14.
└─Function……………………………… CONNECTION
If you are interested specifically the the EPSG database version, the
following code will give "9.9.1" directly:
String edition = authority.getEdition().toString();
All information shown in above tree are accessible by a getter of the
same name (authority.getIdentifier(), authority.getOnlineResource(), etc.).
Martin