You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(23) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(8) |
Feb
(11) |
Mar
(14) |
Apr
(21) |
May
(43) |
Jun
(25) |
Jul
(19) |
Aug
(23) |
Sep
(26) |
Oct
(27) |
Nov
(46) |
Dec
(13) |
2004 |
Jan
(34) |
Feb
(20) |
Mar
(17) |
Apr
(18) |
May
(58) |
Jun
(64) |
Jul
(86) |
Aug
(50) |
Sep
(67) |
Oct
(124) |
Nov
(83) |
Dec
(159) |
2005 |
Jan
(127) |
Feb
(127) |
Mar
(133) |
Apr
(113) |
May
(113) |
Jun
(176) |
Jul
(182) |
Aug
(156) |
Sep
(138) |
Oct
(182) |
Nov
(148) |
Dec
(130) |
2006 |
Jan
(156) |
Feb
(158) |
Mar
(170) |
Apr
(114) |
May
(145) |
Jun
(135) |
Jul
(85) |
Aug
(163) |
Sep
(170) |
Oct
(180) |
Nov
(167) |
Dec
(124) |
2007 |
Jan
(133) |
Feb
(200) |
Mar
(193) |
Apr
(237) |
May
(154) |
Jun
(140) |
Jul
(199) |
Aug
(331) |
Sep
(123) |
Oct
(95) |
Nov
(125) |
Dec
(194) |
2008 |
Jan
(162) |
Feb
(148) |
Mar
(143) |
Apr
(207) |
May
(207) |
Jun
(231) |
Jul
(225) |
Aug
(178) |
Sep
(141) |
Oct
(201) |
Nov
(146) |
Dec
(124) |
2009 |
Jan
(232) |
Feb
(264) |
Mar
(213) |
Apr
(215) |
May
(153) |
Jun
(244) |
Jul
(71) |
Aug
(124) |
Sep
(247) |
Oct
(278) |
Nov
(155) |
Dec
(178) |
2010 |
Jan
(203) |
Feb
(133) |
Mar
(338) |
Apr
(226) |
May
(386) |
Jun
(385) |
Jul
(146) |
Aug
(162) |
Sep
(172) |
Oct
(72) |
Nov
(69) |
Dec
(96) |
2011 |
Jan
(63) |
Feb
(112) |
Mar
(235) |
Apr
(198) |
May
(260) |
Jun
(239) |
Jul
(309) |
Aug
(186) |
Sep
(140) |
Oct
(174) |
Nov
(105) |
Dec
(41) |
2012 |
Jan
(68) |
Feb
(132) |
Mar
(89) |
Apr
(61) |
May
(113) |
Jun
(129) |
Jul
(62) |
Aug
(144) |
Sep
(94) |
Oct
(116) |
Nov
(151) |
Dec
(57) |
2013 |
Jan
(101) |
Feb
(144) |
Mar
(93) |
Apr
(75) |
May
(67) |
Jun
(52) |
Jul
(64) |
Aug
(67) |
Sep
(65) |
Oct
(55) |
Nov
(26) |
Dec
(32) |
2014 |
Jan
(38) |
Feb
(40) |
Mar
(40) |
Apr
(43) |
May
(28) |
Jun
(50) |
Jul
(79) |
Aug
(90) |
Sep
(75) |
Oct
(45) |
Nov
(62) |
Dec
(49) |
2015 |
Jan
(40) |
Feb
(64) |
Mar
(80) |
Apr
(43) |
May
(49) |
Jun
(46) |
Jul
(23) |
Aug
(69) |
Sep
(49) |
Oct
(61) |
Nov
(43) |
Dec
(33) |
2016 |
Jan
(15) |
Feb
(63) |
Mar
(40) |
Apr
(56) |
May
(43) |
Jun
(35) |
Jul
(41) |
Aug
(35) |
Sep
(10) |
Oct
(41) |
Nov
(39) |
Dec
(37) |
2017 |
Jan
(57) |
Feb
(19) |
Mar
(36) |
Apr
(8) |
May
(19) |
Jun
(17) |
Jul
(9) |
Aug
(18) |
Sep
(19) |
Oct
(17) |
Nov
(4) |
Dec
(13) |
2018 |
Jan
(17) |
Feb
(15) |
Mar
(23) |
Apr
(22) |
May
(5) |
Jun
(3) |
Jul
(30) |
Aug
(10) |
Sep
(20) |
Oct
(12) |
Nov
(1) |
Dec
(9) |
2019 |
Jan
(13) |
Feb
(19) |
Mar
(34) |
Apr
(16) |
May
(14) |
Jun
(10) |
Jul
(21) |
Aug
(25) |
Sep
(22) |
Oct
(3) |
Nov
(10) |
Dec
(8) |
2020 |
Jan
|
Feb
(19) |
Mar
(3) |
Apr
(51) |
May
(5) |
Jun
(12) |
Jul
(16) |
Aug
(15) |
Sep
(7) |
Oct
(16) |
Nov
(24) |
Dec
(24) |
2021 |
Jan
(11) |
Feb
(27) |
Mar
(14) |
Apr
(14) |
May
(3) |
Jun
(11) |
Jul
(8) |
Aug
(8) |
Sep
(15) |
Oct
(24) |
Nov
(11) |
Dec
(2) |
2022 |
Jan
(6) |
Feb
(14) |
Mar
(1) |
Apr
(9) |
May
(4) |
Jun
(3) |
Jul
(4) |
Aug
(4) |
Sep
(17) |
Oct
(5) |
Nov
(15) |
Dec
(4) |
2023 |
Jan
(7) |
Feb
(16) |
Mar
(9) |
Apr
(13) |
May
(15) |
Jun
(7) |
Jul
(8) |
Aug
(3) |
Sep
(3) |
Oct
(13) |
Nov
(4) |
Dec
(8) |
2024 |
Jan
(9) |
Feb
(10) |
Mar
(6) |
Apr
(3) |
May
(7) |
Jun
(7) |
Jul
(7) |
Aug
(5) |
Sep
|
Oct
(6) |
Nov
(1) |
Dec
|
2025 |
Jan
(3) |
Feb
(1) |
Mar
(5) |
Apr
|
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: SPDBA <si...@sp...> - 2024-03-13 00:59:40
|
> I am accessing them via GeoTools so I want a GeoTools based solution. This is what I do initially to try and identify the "primary key" String key = "[fixme]"; List<AttributeDescriptor> adl = schema.getAttributeDescriptors(); for (AttributeDescriptor attribute : adl) { if ( attribute.getType().isIdentified() || attribute.getLocalName().equalsIgnoreCase("OBJECTID")) { key = attribute.getLocalName(); break; } } On 13 Mar 2024, 09:03, at 09:03, SPDBA <si...@sp...> wrote: >Mark, > >They are not WFS, they are ESRI ArcGIS Feature Services. > >I am accessing them via GeoTools so I want a GeoTools based solution. > >Simon > >39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia >(P) 03 62 396 397 >(M) 0418 396 381 >(W) www.spdba.com.au > >On 13 Mar 2024, 04:05, at 04:05, Mark Prins <mc....@gm...> wrote: >>On 09-03-2024 03:20, SPDBA wrote: >>> GeoTools people. >>> I've a simple question. >>> I'm connecting to an ArcGIS feature web service. >>> What I want to discover is which field in the published attributes >is >> >>> the primary key. The sites I am looking at can have OBJECTID fields >>of >>> type esriFieldTypeOID, but often the name is otherwise: rid, gid, >>fid, >>> oid etc etc. The common thing is that one field is of type >>> esriFieldTypeOID. >>> Looking at the source with GeoTools the data type is returned as >>> java.lang.Integer (AttributeDescriptor) which is fair enough in one >>> sense but not useful to distinguish a field from all other integer. >>So, >>> is there a way of discovering what field is of type >>> esriFieldTypeOID? >> >>it's unclear to me if you are talking about the esri native rest >>service >>interface aka "FeatureServer" or the OGC standard WFS interface of >AGS. >>The REST interface provides the esri types as metadata of a layer[0]; >>the WFS is limited to the types specified in the GML standard. >>Some WFS services use the primary key value to produce the gml:id >>attribute of a feature, this is exposed in GeoTools as the fid afaik >> >>[0] >>https://sampleserver6.arcgisonline.com/arcgis/rest/services/CommercialDamageAssessment/FeatureServer/0 >> >> >>or as json >>https://sampleserver6.arcgisonline.com/arcgis/rest/services/CommercialDamageAssessment/FeatureServer/0?f=pjson >> >> >> >>_______________________________________________ >>GeoTools-GT2-Users mailing list >>Geo...@li... >>https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > >------------------------------------------------------------------------ > > > >------------------------------------------------------------------------ > >_______________________________________________ >GeoTools-GT2-Users mailing list >Geo...@li... >https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users |
From: SPDBA <si...@sp...> - 2024-03-12 22:01:33
|
Mark, They are not WFS, they are ESRI ArcGIS Feature Services. I am accessing them via GeoTools so I want a GeoTools based solution. Simon 39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia (P) 03 62 396 397 (M) 0418 396 381 (W) www.spdba.com.au On 13 Mar 2024, 04:05, at 04:05, Mark Prins <mc....@gm...> wrote: >On 09-03-2024 03:20, SPDBA wrote: >> GeoTools people. >> I've a simple question. >> I'm connecting to an ArcGIS feature web service. >> What I want to discover is which field in the published attributes is > >> the primary key. The sites I am looking at can have OBJECTID fields >of >> type esriFieldTypeOID, but often the name is otherwise: rid, gid, >fid, >> oid etc etc. The common thing is that one field is of type >> esriFieldTypeOID. >> Looking at the source with GeoTools the data type is returned as >> java.lang.Integer (AttributeDescriptor) which is fair enough in one >> sense but not useful to distinguish a field from all other integer. >So, >> is there a way of discovering what field is of type >> esriFieldTypeOID? > >it's unclear to me if you are talking about the esri native rest >service >interface aka "FeatureServer" or the OGC standard WFS interface of AGS. >The REST interface provides the esri types as metadata of a layer[0]; >the WFS is limited to the types specified in the GML standard. >Some WFS services use the primary key value to produce the gml:id >attribute of a feature, this is exposed in GeoTools as the fid afaik > >[0] >https://sampleserver6.arcgisonline.com/arcgis/rest/services/CommercialDamageAssessment/FeatureServer/0 > > >or as json >https://sampleserver6.arcgisonline.com/arcgis/rest/services/CommercialDamageAssessment/FeatureServer/0?f=pjson > > > >_______________________________________________ >GeoTools-GT2-Users mailing list >Geo...@li... >https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users |
From: Mark P. <mc....@gm...> - 2024-03-12 15:18:20
|
On 09-03-2024 03:20, SPDBA wrote: > GeoTools people. > I've a simple question. > I'm connecting to an ArcGIS feature web service. > What I want to discover is which field in the published attributes is > the primary key. The sites I am looking at can have OBJECTID fields of > type esriFieldTypeOID, but often the name is otherwise: rid, gid, fid, > oid etc etc. The common thing is that one field is of type > esriFieldTypeOID. > Looking at the source with GeoTools the data type is returned as > java.lang.Integer (AttributeDescriptor) which is fair enough in one > sense but not useful to distinguish a field from all other integer. So, > is there a way of discovering what field is of type > esriFieldTypeOID? it's unclear to me if you are talking about the esri native rest service interface aka "FeatureServer" or the OGC standard WFS interface of AGS. The REST interface provides the esri types as metadata of a layer[0]; the WFS is limited to the types specified in the GML standard. Some WFS services use the primary key value to produce the gml:id attribute of a feature, this is exposed in GeoTools as the fid afaik [0] https://sampleserver6.arcgisonline.com/arcgis/rest/services/CommercialDamageAssessment/FeatureServer/0 or as json https://sampleserver6.arcgisonline.com/arcgis/rest/services/CommercialDamageAssessment/FeatureServer/0?f=pjson |
From: SPDBA <si...@sp...> - 2024-03-09 02:37:04
|
GeoTools people. I've a simple question. I'm connecting to an ArcGIS feature web service. What I want to discover is which field in the published attributes is the primary key. The sites I am looking at can have OBJECTID fields of type esriFieldTypeOID, but often the name is otherwise: rid, gid, fid, oid etc etc. The common thing is that one field is of type esriFieldTypeOID. Looking at the source with GeoTools the data type is returned as java.lang.Integer (AttributeDescriptor) which is fair enough in one sense but not useful to distinguish a field from all other integer. So, is there a way of discovering what field is of type esriFieldTypeOID? Simon 39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia (P) 03 62 396 397 (M) 0418 396 381 (W) www.spdba.com.au |
From: Andrea A. <and...@ge...> - 2024-02-27 11:05:16
|
You can add this one to the list: https://osgeo-org.atlassian.net/browse/GEOS-11292 The way to fix it is explained here: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-fixes,-improvements-and-new-features-in-GeoServer Cheers Andrea On Tue, Feb 27, 2024 at 11:38 AM Goedertier Stijn via GeoTools-GT2-Users < geo...@li...> wrote: > Dear all, > > > > We noticed an issue with GeoPackage files produced by Geotools. The issue > is that timestamp columns are not read by GDAL/OGR nor by QGIS because the > TIMESTAMP datatype is not in accordance with the GeoPackage spec. > > > > Further info is in the following tickets: > https://osgeo-org.atlassian.net/browse/GEOT-7528 > > > > https://osgeo-org.atlassian.net/browse/GEOT-7537 > > https://osgeo-org.atlassian.net/browse/GEOT-7528 > > > > Is there a way to fix this? > > > > best regards, > > Stijn > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 https://www.geosolutionsgroup.com/ http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail |
From: Goedertier S. <sti...@vl...> - 2024-02-27 10:36:45
|
Dear all, We noticed an issue with GeoPackage files produced by Geotools. The issue is that timestamp columns are not read by GDAL/OGR nor by QGIS because the TIMESTAMP datatype is not in accordance with the GeoPackage spec. Further info is in the following tickets: https://osgeo-org.atlassian.net/browse/GEOT-7528 https://osgeo-org.atlassian.net/browse/GEOT-7537 https://osgeo-org.atlassian.net/browse/GEOT-7528 Is there a way to fix this? best regards, Stijn |
From: Andrea A. <and...@ge...> - 2024-02-21 11:33:58
|
Hi all, GeoTools 29.5 has just been released, please read updates about it here: https://geotoolsnews.blogspot.com/2024/02/geotools-295-released.html Mind, this is the last planned release for the 29.x series, it's time to either plan an upgrade to GeoTools 30.x, or wait a month for GeoTools 31.0 to be released, and jump directly to it. An upgrade guide <https://docs.geotools.org/latest/userguide/welcome/upgrade.html> is available to ease the migration. Best regards Andrea == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 https://www.geosolutionsgroup.com/ http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail |
From: Ian T. <ijt...@gm...> - 2024-02-17 11:57:56
|
Yes, you can interpolate the points using a Barnes Surface - see https://gis.stackexchange.com/questions/41197/creating-raster-by-interpolating-point-values-using-geotools Ian On Sat, 17 Feb 2024 at 06:33, sunish <sun...@gm...> wrote: > Hello, > > I have a set of points with x y z coordinates on EPSG:4326 projection. > Can I utilize GeoTools to generate elevation data in DEM format from the > provided dataset? > > Could you please provide insights, how I should proceed. > > > > Thank You. > > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Ian Turton |
From: sunish <sun...@gm...> - 2024-02-17 06:32:26
|
Hello, I have a set of points with x y z coordinates on EPSG:4326 projection. Can I utilize GeoTools to generate elevation data in DEM format from the provided dataset? Could you please provide insights, how I should proceed. Thank You. |
From: Jody G. <jod...@gm...> - 2024-02-08 05:35:53
|
Plugin discover looks at one of the folders on the jar, where a text files list what implementations are available for each. When using shading to remix jars - these text files need to be combined from multiple jars. The result is that the text files can be found on the classpath by ServiceLoader. https://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html -- Jody Garnett On Wed, Feb 7, 2024 at 5:41 PM Phil Scadden <P.S...@gn...> wrote: > This turns out to be more a mystery than I first thought. I assumed the > when running under JPACKAGE, it was not finding the epsg database, but logs > didn’t show any sign of that. I requested stackdump in the exception, and I > get: > org.opengis.referencing.NoSuchAuthorityCodeException: No code "EPSG:2193" > from authority "EPSG" found for object of type "EngineeringCRS". > > at > org.geotools.referencing.factory.epsg.CartesianAuthorityFactory.noSuchAuthorityException(CartesianAuthorityFactory.java:140) > > at > org.geotools.referencing.factory.epsg.CartesianAuthorityFactory.createEngineeringCRS(CartesianAuthorityFactory.java:132) > > at > org.geotools.referencing.factory.epsg.CartesianAuthorityFactory.createCoordinateReferenceSystem(CartesianAuthorityFactory.java:123) > > at > org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:811) > > at > org.geotools.referencing.factory.ThreadedAuthorityFactory.createCoordinateReferenceSystem(ThreadedAuthorityFactory.java:667) > > at > org.geotools.referencing.DefaultAuthorityFactory.createCoordinateReferenceSystem(DefaultAuthorityFactory.java:172) > > at org.geotools.referencing.CRS.decode(CRS.java:507) > > at org.geotools.referencing.CRS.decode(CRS.java:428) > > > > Reading this, I would assume that it didn’t find the plugin at all. > Relevant bits of pom: <dependency> > > <groupId>org.geotools</groupId> > > <artifactId>gt-referencing</artifactId> > > <version>${geotools.version}</version> > > </dependency> > > <dependency> > > <groupId>org.geotools</groupId> > > <artifactId>gt-epsg-wkt</artifactId> > > <version>${geotools.version}</version> > > </dependency> > > <dependency> > > <groupId>org.geotools</groupId> > > <artifactId>gt-epsg-extension</artifactId> > > <version>${geotools.version}</version> > > </dependency> > > <dependency> > > <groupId>org.geotools</groupId> > > <artifactId>gt-api</artifactId> > > <version>15.0</version> > > <type>jar</type> > > </dependency> > > > > ( I been trying both wkt and h2sql plugins – same result for h2sql). > > If I look at the shaded jar in the application image, I can see the plugin > classes. I am pretty hazy though about plugins work in java – what would be > reasons for the executable not to find them? As noted earlier, this works > fine if run as jar on a machine with java already installed. > > > > > > > > *From:* Jody Garnett <jod...@gm...> > *Sent:* Thursday, February 1, 2024 9:55 PM > *To:* Phil Scadden <P.S...@gn...> > *Cc:* geo...@li... > *Subject:* Re: [Geotools-gt2-users] Using gt-referencing within an app > bundled with JPackage - where does the epsg database go. > > > > > > *CAUTION:* This email originated from outside of the organization. Do not > click links or open attachments unless you recognize the sender and know > the content is safe: > > If you have done sharing correctly then plugin discovery works. > > > > The zip is unpacked into the the temp folder I believe? Yes it is: > > > > File directory = new File(System.getProperty("java.io.tmpdir", > "."), "Geotools"); > > if (directory.isDirectory() || directory.mkdir()) { > > directory = new File(directory, "Databases/HSQL"); > > if (directory.isDirectory() || directory.mkdirs()) { > > return directory; > > } > > } > > > > You can also set a property "EPSG-HSQL.directory" to indicate where the > database is located. > > > > See > https://github.com/geotools/geotools/blob/main/modules/plugin/epsg-hsql/src/main/java/org/geotools/referencing/factory/epsg/hsql/HsqlEpsgDatabase.java > > > > -- > > Jody Garnett > > > > > > On Jan 31, 2024 at 8:07:47 PM, Phil Scadden <P.S...@gn...> wrote: > > I have a little console app (pushing excel sheet to a database), that runs > fine as a shaded jar with java. However, I have folk using it that are > reluctant to install java and I packaged it with JRT etc using JPackage. If > the code is launched with JPackage, then it doesn’t find the EPSG database. > Tried with both epgl-h2sql and epsg-wkt. No luck. JPackage allows me to > specify a resource directory, but no idea what it would be. When the app > runs, what exactly happens to say the EPSG.zip in epsg-h2sql for instance? > > > > ________________________________________________ > > Ngā mihi, Nā Phil Scadden (he/him) > > Te Raraunga me te Tātaritanga Mokowā Aronuku (Geospatial Data and > Analysis) > > *GNS Science **Te Pῡ Ao* > > 764 Cumberland St > <https://www.google.com/maps/search/764+Cumberland+St?entry=gmail&source=g>, > Private Bag 1930, > > Dunedin, New Zealand Ph +64 3 4799663, 027 3463185 > > > > “Whāia te iti kahurangi ki te tūohu koe me he maunga teitei” > > > > Notice: This email and any attachments are confidential and may not be > used, published or redistributed without the prior written consent of the > Institute of Geological and Nuclear Sciences Limited (GNS Science). If > received in error please destroy and immediately notify GNS Science. Do not > copy or disclose the contents. > > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > Notice: This email and any attachments are confidential and may not be > used, published or redistributed without the prior written consent of the > Institute of Geological and Nuclear Sciences Limited (GNS Science). If > received in error please destroy and immediately notify GNS Science. Do not > copy or disclose the contents. > |
From: Phil S. <P.S...@gn...> - 2024-02-08 01:41:54
|
This turns out to be more a mystery than I first thought. I assumed the when running under JPACKAGE, it was not finding the epsg database, but logs didn’t show any sign of that. I requested stackdump in the exception, and I get: org.opengis.referencing.NoSuchAuthorityCodeException: No code "EPSG:2193" from authority "EPSG" found for object of type "EngineeringCRS". at org.geotools.referencing.factory.epsg.CartesianAuthorityFactory.noSuchAuthorityException(CartesianAuthorityFactory.java:140) at org.geotools.referencing.factory.epsg.CartesianAuthorityFactory.createEngineeringCRS(CartesianAuthorityFactory.java:132) at org.geotools.referencing.factory.epsg.CartesianAuthorityFactory.createCoordinateReferenceSystem(CartesianAuthorityFactory.java:123) at org.geotools.referencing.factory.AuthorityFactoryAdapter.createCoordinateReferenceSystem(AuthorityFactoryAdapter.java:811) at org.geotools.referencing.factory.ThreadedAuthorityFactory.createCoordinateReferenceSystem(ThreadedAuthorityFactory.java:667) at org.geotools.referencing.DefaultAuthorityFactory.createCoordinateReferenceSystem(DefaultAuthorityFactory.java:172) at org.geotools.referencing.CRS.decode(CRS.java:507) at org.geotools.referencing.CRS.decode(CRS.java:428) Reading this, I would assume that it didn’t find the plugin at all. Relevant bits of pom: <dependency> <groupId>org.geotools</groupId> <artifactId>gt-referencing</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-epsg-wkt</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-epsg-extension</artifactId> <version>${geotools.version}</version> </dependency> <dependency> <groupId>org.geotools</groupId> <artifactId>gt-api</artifactId> <version>15.0</version> <type>jar</type> </dependency> ( I been trying both wkt and h2sql plugins – same result for h2sql). If I look at the shaded jar in the application image, I can see the plugin classes. I am pretty hazy though about plugins work in java – what would be reasons for the executable not to find them? As noted earlier, this works fine if run as jar on a machine with java already installed. From: Jody Garnett <jod...@gm...> Sent: Thursday, February 1, 2024 9:55 PM To: Phil Scadden <P.S...@gn...> Cc: geo...@li... Subject: Re: [Geotools-gt2-users] Using gt-referencing within an app bundled with JPackage - where does the epsg database go. CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe: If you have done sharing correctly then plugin discovery works. The zip is unpacked into the the temp folder I believe? Yes it is: File directory = new File(System.getProperty("java.io.tmpdir", "."), "Geotools"); if (directory.isDirectory() || directory.mkdir()) { directory = new File(directory, "Databases/HSQL"); if (directory.isDirectory() || directory.mkdirs()) { return directory; } } You can also set a property "EPSG-HSQL.directory" to indicate where the database is located. See https://github.com/geotools/geotools/blob/main/modules/plugin/epsg-hsql/src/main/java/org/geotools/referencing/factory/epsg/hsql/HsqlEpsgDatabase.java -- Jody Garnett On Jan 31, 2024 at 8:07:47 PM, Phil Scadden <P.S...@gn...<mailto:P.S...@gn...>> wrote: I have a little console app (pushing excel sheet to a database), that runs fine as a shaded jar with java. However, I have folk using it that are reluctant to install java and I packaged it with JRT etc using JPackage. If the code is launched with JPackage, then it doesn’t find the EPSG database. Tried with both epgl-h2sql and epsg-wkt. No luck. JPackage allows me to specify a resource directory, but no idea what it would be. When the app runs, what exactly happens to say the EPSG.zip in epsg-h2sql for instance? ________________________________________________ Ngā mihi, Nā Phil Scadden (he/him) Te Raraunga me te Tātaritanga Mokowā Aronuku (Geospatial Data and Analysis) GNS Science Te Pῡ Ao 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, 027 3463185 “Whāia te iti kahurangi ki te tūohu koe me he maunga teitei” Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents. _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li...<mailto:Geo...@li...> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents. |
From: Phil S. <P.S...@gn...> - 2024-02-04 21:21:16
|
Thanks very much Jody, that was just the information that I needed. From: Jody Garnett <jod...@gm...> Sent: Thursday, February 1, 2024 9:55 PM To: Phil Scadden <P.S...@gn...> Cc: geo...@li... Subject: Re: [Geotools-gt2-users] Using gt-referencing within an app bundled with JPackage - where does the epsg database go. CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe: If you have done sharing correctly then plugin discovery works. The zip is unpacked into the the temp folder I believe? Yes it is: File directory = new File(System.getProperty("java.io.tmpdir", "."), "Geotools"); if (directory.isDirectory() || directory.mkdir()) { directory = new File(directory, "Databases/HSQL"); if (directory.isDirectory() || directory.mkdirs()) { return directory; } } You can also set a property "EPSG-HSQL.directory" to indicate where the database is located. See https://github.com/geotools/geotools/blob/main/modules/plugin/epsg-hsql/src/main/java/org/geotools/referencing/factory/epsg/hsql/HsqlEpsgDatabase.java -- Jody Garnett On Jan 31, 2024 at 8:07:47 PM, Phil Scadden <P.S...@gn...<mailto:P.S...@gn...>> wrote: I have a little console app (pushing excel sheet to a database), that runs fine as a shaded jar with java. However, I have folk using it that are reluctant to install java and I packaged it with JRT etc using JPackage. If the code is launched with JPackage, then it doesn’t find the EPSG database. Tried with both epgl-h2sql and epsg-wkt. No luck. JPackage allows me to specify a resource directory, but no idea what it would be. When the app runs, what exactly happens to say the EPSG.zip in epsg-h2sql for instance? ________________________________________________ Ngā mihi, Nā Phil Scadden (he/him) Te Raraunga me te Tātaritanga Mokowā Aronuku (Geospatial Data and Analysis) GNS Science Te Pῡ Ao 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, 027 3463185 “Whāia te iti kahurangi ki te tūohu koe me he maunga teitei” Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents. _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li...<mailto:Geo...@li...> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents. |
From: Jody G. <jod...@gm...> - 2024-02-01 08:55:30
|
If you have done sharing correctly then plugin discovery works. The zip is unpacked into the the temp folder I believe? Yes it is: File directory = new File(System.getProperty("java.io.tmpdir", "."), "Geotools"); if (directory.isDirectory() || directory.mkdir()) { directory = new File(directory, "Databases/HSQL"); if (directory.isDirectory() || directory.mkdirs()) { return directory; } } You can also set a property "EPSG-HSQL.directory" to indicate where the database is located. See https://github.com/geotools/geotools/blob/main/modules/plugin/epsg-hsql/src/main/java/org/geotools/referencing/factory/epsg/hsql/HsqlEpsgDatabase.java -- Jody Garnett On Jan 31, 2024 at 8:07:47 PM, Phil Scadden <P.S...@gn...> wrote: > I have a little console app (pushing excel sheet to a database), that runs > fine as a shaded jar with java. However, I have folk using it that are > reluctant to install java and I packaged it with JRT etc using JPackage. If > the code is launched with JPackage, then it doesn’t find the EPSG database. > Tried with both epgl-h2sql and epsg-wkt. No luck. JPackage allows me to > specify a resource directory, but no idea what it would be. When the app > runs, what exactly happens to say the EPSG.zip in epsg-h2sql for instance? > > > > ________________________________________________ > > Ngā mihi, Nā Phil Scadden (he/him) > > Te Raraunga me te Tātaritanga Mokowā Aronuku (Geospatial Data and > Analysis) > > *GNS Science* *Te Pῡ Ao* > > 764 Cumberland St, Private Bag 1930, > > Dunedin, New Zealand Ph +64 3 4799663, 027 3463185 > > > > “Whāia te iti kahurangi ki te tūohu koe me he maunga teitei” > > > Notice: This email and any attachments are confidential and may not be > used, published or redistributed without the prior written consent of the > Institute of Geological and Nuclear Sciences Limited (GNS Science). If > received in error please destroy and immediately notify GNS Science. Do not > copy or disclose the contents. > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |
From: Phil S. <P.S...@gn...> - 2024-02-01 04:24:02
|
I have a little console app (pushing excel sheet to a database), that runs fine as a shaded jar with java. However, I have folk using it that are reluctant to install java and I packaged it with JRT etc using JPackage. If the code is launched with JPackage, then it doesn’t find the EPSG database. Tried with both epgl-h2sql and epsg-wkt. No luck. JPackage allows me to specify a resource directory, but no idea what it would be. When the app runs, what exactly happens to say the EPSG.zip in epsg-h2sql for instance? ________________________________________________ Ngā mihi, Nā Phil Scadden (he/him) Te Raraunga me te Tātaritanga Mokowā Aronuku (Geospatial Data and Analysis) GNS Science Te Pῡ Ao 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, 027 3463185 “Whāia te iti kahurangi ki te tūohu koe me he maunga teitei” Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents. |
From: <pie...@sy...> - 2024-01-26 04:55:05
|
Hi Jody, Finally, the solution is to add the following line of code to the test. TimeZone.setDefault(TimeZone.getTimeZone("UTC")); I will do the PR Regards, Pierre De : Jody Garnett <jod...@gm...> Envoyé : 24 janvier 2024 10:03 À : Andrea Aime <and...@ge...> Cc : geo...@li...; pie...@sy... Objet : Re: [Geotools-gt2-users] Problem with NetCDF gridcoverage module Should we adjust the GitHub action to run a different timezone? It would catch this category of errors. -- Jody Garnett On Wed, Jan 24, 2024 at 12:03 AM Andrea Aime <and...@ge... <mailto:and...@ge...> > wrote: Perhaps they easiest way is to force the test to run in UTC, either with the surefire JVM configuration <https://github.com/geotools/geotools/blob/main/pom.xml#L1760> , or in the test setup, like for example DateParserTest <https://github.com/geotools/geotools/blob/main/modules/unsupported/geojson-core/src/test/java/org/geotools/data/geojson/DateParserTest.java#L17> PRs with updates to make it build on your end too welcomed, the Github actions will run in UTC and confirm it can work for others as well (along with a manual review checking the change). Best regards Andrea On Wed, Jan 24, 2024 at 1:57 AM Jody Garnett <jod...@gm... <mailto:jod...@gm...> > wrote: In my experience some it can be interesting to write tests that compare times, often people write tests in Europe which then fail when we run them in North America due to timezone offset. Options: 1. When you look at the test is it possible to providing in GMT or Z time for comparison? Look at the value prior to toString(). 2. I am not sure if it is a bug in the code, in the test, or worst case in the file format specification? -- Jody Garnett On Dec 19, 2023 at 9:03:50 AM, pie...@sy... <mailto:pie...@sy...> wrote: Hi, What is wrong with my settings ? When I run « mvn install », I have the following error: NetCDF gridcoverage module FAILURE To correct the problem I have to change the function testGranuleSourceFileView() in the file NetCDFMosaicReaderTest.java. The two lines : assertEquals("2017-02-06 00:00:00.0", nc1.getAttribute("time").toString()); assertEquals("2017-02-06 12:00:00.0", nc2.getAttribute("time").toString()); should be change for assertEquals("2017-02-05 19:00:00.0", nc1.getAttribute("time").toString()); assertEquals("2017-02-06 07:00:00.0", nc2.getAttribute("time").toString()); My computer is in the zone (UTC -05:00) East (USA and Canada). It is exactly the difference of time shown previously. Regards, Pierre _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... <mailto:Geo...@li...> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... <mailto:Geo...@li...> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit <http://bit.ly/gs-services-us> http://bit.ly/gs-services-us for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 <https://www.geosolutionsgroup.com/> https://www.geosolutionsgroup.com/ <http://twitter.com/geosolutions_it> http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail |
From: <pie...@sy...> - 2024-01-26 03:09:48
|
Hi Jody, For your information, if I change the time zone of my machine to UTC+0:00 (zone 0) then the test runs without problems. But I didn’t find the solution to run the test in my time zone yet. Regards, Pierre De : Jody Garnett <jod...@gm...> Envoyé : 24 janvier 2024 15:03 À : Andrea Aime <and...@ge...> Cc : geo...@li...; pie...@sy... Objet : Re: [Geotools-gt2-users] Problem with NetCDF gridcoverage module Should we adjust the GitHub action to run a different timezone? It would catch this category of errors. -- Jody Garnett On Wed, Jan 24, 2024 at 12:03 AM Andrea Aime <and...@ge... <mailto:and...@ge...> > wrote: Perhaps they easiest way is to force the test to run in UTC, either with the surefire JVM configuration <https://github.com/geotools/geotools/blob/main/pom.xml#L1760> , or in the test setup, like for example DateParserTest <https://github.com/geotools/geotools/blob/main/modules/unsupported/geojson-core/src/test/java/org/geotools/data/geojson/DateParserTest.java#L17> PRs with updates to make it build on your end too welcomed, the Github actions will run in UTC and confirm it can work for others as well (along with a manual review checking the change). Best regards Andrea On Wed, Jan 24, 2024 at 1:57 AM Jody Garnett <jod...@gm... <mailto:jod...@gm...> > wrote: In my experience some it can be interesting to write tests that compare times, often people write tests in Europe which then fail when we run them in North America due to timezone offset. Options: 1. When you look at the test is it possible to providing in GMT or Z time for comparison? Look at the value prior to toString(). 2. I am not sure if it is a bug in the code, in the test, or worst case in the file format specification? -- Jody Garnett On Dec 19, 2023 at 9:03:50 AM, pie...@sy... <mailto:pie...@sy...> wrote: Hi, What is wrong with my settings ? When I run « mvn install », I have the following error: NetCDF gridcoverage module FAILURE To correct the problem I have to change the function testGranuleSourceFileView() in the file NetCDFMosaicReaderTest.java. The two lines : assertEquals("2017-02-06 00:00:00.0", nc1.getAttribute("time").toString()); assertEquals("2017-02-06 12:00:00.0", nc2.getAttribute("time").toString()); should be change for assertEquals("2017-02-05 19:00:00.0", nc1.getAttribute("time").toString()); assertEquals("2017-02-06 07:00:00.0", nc2.getAttribute("time").toString()); My computer is in the zone (UTC -05:00) East (USA and Canada). It is exactly the difference of time shown previously. Regards, Pierre _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... <mailto:Geo...@li...> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users _______________________________________________ GeoTools-GT2-Users mailing list Geo...@li... <mailto:Geo...@li...> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit <http://bit.ly/gs-services-us> http://bit.ly/gs-services-us for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 <https://www.geosolutionsgroup.com/> https://www.geosolutionsgroup.com/ <http://twitter.com/geosolutions_it> http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail |
From: Jody G. <jod...@gm...> - 2024-01-25 06:57:59
|
Dear GeoTools community, We are pleased to announce the latest stable release of GeoTools 30.2 is available for download or via maven repo. For details please see blog post: https://geotoolsnews.blogspot.com/2024/01/geotools-302-released.html Or release notes: https://github.com/geotools/geotools/releases/tag/30.2 -- Jody Garnett |
From: Jody G. <jod...@gm...> - 2024-01-24 15:03:10
|
Should we adjust the GitHub action to run a different timezone? It would catch this category of errors. -- Jody Garnett On Wed, Jan 24, 2024 at 12:03 AM Andrea Aime < and...@ge...> wrote: > Perhaps they easiest way is to force the test to run in UTC, either > with the surefire JVM configuration > <https://github.com/geotools/geotools/blob/main/pom.xml#L1760>, or in the > test setup, like for example DateParserTest > <https://github.com/geotools/geotools/blob/main/modules/unsupported/geojson-core/src/test/java/org/geotools/data/geojson/DateParserTest.java#L17> > > PRs with updates to make it build on your end too welcomed, the Github > actions will > run in UTC and confirm it can work for others as well (along with a manual > review checking the change). > > Best regards > Andrea > > On Wed, Jan 24, 2024 at 1:57 AM Jody Garnett <jod...@gm...> > wrote: > >> In my experience some it can be interesting to write tests that compare >> times, often people write tests in Europe which then fail when we run them >> in North America due to timezone offset. >> >> Options: >> >> >> 1. When you look at the test is it possible to providing in GMT or Z >> time for comparison? Look at the value prior to toString(). >> 2. I am not sure if it is a bug in the code, in the test, or worst >> case in the file format specification? >> >> -- >> Jody Garnett >> >> >> On Dec 19, 2023 at 9:03:50 AM, pie...@sy... wrote: >> >>> Hi, >>> >>> >>> >>> What is wrong with my settings ? >>> >>> >>> >>> When I run « mvn install », I have the following error: >>> >>> >>> >>> NetCDF gridcoverage module FAILURE >>> >>> >>> >>> To correct the problem I have to change the function >>> testGranuleSourceFileView() in the file NetCDFMosaicReaderTest.java. >>> >>> >>> >>> The two lines : >>> >>> assertEquals("2017-02-06 00:00:00.0", >>> nc1.getAttribute("time").toString()); >>> >>> assertEquals("2017-02-06 12:00:00.0", >>> nc2.getAttribute("time").toString()); >>> >>> >>> >>> should be change for >>> >>> assertEquals("2017-02-05 19:00:00.0", >>> nc1.getAttribute("time").toString()); >>> >>> assertEquals("2017-02-06 07:00:00.0", >>> nc2.getAttribute("time").toString()); >>> >>> >>> >>> >>> >>> My computer is in the zone (UTC -05:00) East (USA and Canada). It is >>> exactly the difference of time shown previously. >>> >>> >>> >>> >>> >>> Regards, >>> >>> >>> >>> >>> >>> Pierre >>> _______________________________________________ >>> GeoTools-GT2-Users mailing list >>> Geo...@li... >>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >>> >> _______________________________________________ >> GeoTools-GT2-Users mailing list >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> > > > -- > > Regards, > > Andrea Aime > > == > GeoServer Professional Services from the experts! > > Visit http://bit.ly/gs-services-us for more information. > == > > Ing. Andrea Aime > @geowolf > Technical Lead > > GeoSolutions Group > phone: +39 0584 962313 > > fax: +39 0584 1660272 > > mob: +39 339 8844549 > > https://www.geosolutionsgroup.com/ > > http://twitter.com/geosolutions_it > > ------------------------------------------------------- > > Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE > 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si > precisa che ogni circostanza inerente alla presente email (il suo > contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è > riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il > messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra > operazione è illecita. Le sarei comunque grato se potesse darmene notizia. > > This email is intended only for the person or entity to which it is > addressed and may contain information that is privileged, confidential or > otherwise protected from disclosure. We remind that - as provided by > European Regulation 2016/679 “GDPR” - copying, dissemination or use of this > e-mail or the information herein by anyone other than the intended > recipient is prohibited. If you have received this email by mistake, please > notify us immediately by telephone or e-mail > |
From: Andrea A. <and...@ge...> - 2024-01-24 08:10:33
|
Perhaps they easiest way is to force the test to run in UTC, either with the surefire JVM configuration <https://github.com/geotools/geotools/blob/main/pom.xml#L1760>, or in the test setup, like for example DateParserTest <https://github.com/geotools/geotools/blob/main/modules/unsupported/geojson-core/src/test/java/org/geotools/data/geojson/DateParserTest.java#L17> PRs with updates to make it build on your end too welcomed, the Github actions will run in UTC and confirm it can work for others as well (along with a manual review checking the change). Best regards Andrea On Wed, Jan 24, 2024 at 1:57 AM Jody Garnett <jod...@gm...> wrote: > In my experience some it can be interesting to write tests that compare > times, often people write tests in Europe which then fail when we run them > in North America due to timezone offset. > > Options: > > > 1. When you look at the test is it possible to providing in GMT or Z > time for comparison? Look at the value prior to toString(). > 2. I am not sure if it is a bug in the code, in the test, or worst > case in the file format specification? > > -- > Jody Garnett > > > On Dec 19, 2023 at 9:03:50 AM, pie...@sy... wrote: > >> Hi, >> >> >> >> What is wrong with my settings ? >> >> >> >> When I run « mvn install », I have the following error: >> >> >> >> NetCDF gridcoverage module FAILURE >> >> >> >> To correct the problem I have to change the function >> testGranuleSourceFileView() in the file NetCDFMosaicReaderTest.java. >> >> >> >> The two lines : >> >> assertEquals("2017-02-06 00:00:00.0", >> nc1.getAttribute("time").toString()); >> >> assertEquals("2017-02-06 12:00:00.0", >> nc2.getAttribute("time").toString()); >> >> >> >> should be change for >> >> assertEquals("2017-02-05 19:00:00.0", >> nc1.getAttribute("time").toString()); >> >> assertEquals("2017-02-06 07:00:00.0", >> nc2.getAttribute("time").toString()); >> >> >> >> >> >> My computer is in the zone (UTC -05:00) East (USA and Canada). It is >> exactly the difference of time shown previously. >> >> >> >> >> >> Regards, >> >> >> >> >> >> Pierre >> _______________________________________________ >> GeoTools-GT2-Users mailing list >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://bit.ly/gs-services-us for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions Group phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 https://www.geosolutionsgroup.com/ http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail |
From: sunish <sun...@gm...> - 2024-01-24 05:21:54
|
Thank you. The exception got resolved by adding these lines. params.put("validate connections", true); params.put("Max connection idle time", 300); params.put("Evictor run periodicity", 150); There is a firewall running in DB server which terminated idle connections. Thanks and Regards, On Wed, Jan 24, 2024 at 6:28 AM Jody Garnett <jod...@gm...> wrote: > I do not think anyone is answering you as the answer depends on how you > are using the database and what your expectations are? > > If your application is using the database all the time it is worth making > use of a connection pool, to recycle connections, rather than connect to > the database directly. > > If your application is in a shared environment like JavaEE you may wish to > look up a JNDI data source and share the database connections with the rest > of the application? > > If your code only talks to the database for a bit, and then is quiet it > may be kind to do as you say and create the dataStore, use the connections > for a bit, and then dispose of everything until next time. > -- > Jody Garnett > > > On Jan 14, 2024 at 3:33:14 AM, sunish <sun...@gm...> wrote: > >> Hello, >> >> I am developing an application using Geotools. The framework used for the >> application is Quarkus. The application connects to the PostGIS database. >> >> Since it is a web application I want to minimize the overheads in >> connecting to the database in each request. I want to reuse an already >> connected database. >> >> I have maintained an application level DataStore object which gets >> created when the application starts up. >> >> Map<String, Object> params = new HashMap<>(); >> params.put("dbtype", "postgis"); >> params.put("host", this.dbConfig.getHost()); >> params.put("port", this.dbConfig.getPort()); >> params.put("schema", "public"); >> params.put("database" ,this.dbConfig.getDatabase()); >> params.put("user", this.dbConfig.getUser()); >> params.put("passwd", this.dbConfig.getPassword()); >> params.put("preparedStatements", true); >> params.put("encode functions", true); >> >> try { >> this.dataStore = (JDBCDataStore) DataStoreFinder.getDataStore(params); >> } catch (IOException e) { >> >> Logger.getLogger(DataSourceService.class.getName()).warning(e.getMessage()); >> } catch (SQLException e) { >> >> Logger.getLogger(DataSourceService.class.getName()).warning(e.getMessage()); >> } >> --------- >> >> Then I am using the dataStore object in the rest of the places. >> >> Is this the proper way of doing or should I use DataStoreFinder each >> time to find the datastore and dispose of the data store at the end of >> processing request? >> Can I plug connection pools like HikariCP to get datastore out of that >> connection? >> >> When I leave the application idle for a long time I am getting this >> error. >> >> java.sql.SQLException: An I/O error occurred while sending to the backend. >> >> Please suggest the best way of doing it. >> >> Thanks in advance. >> >> Sunish. >> >> >> >> >> >> _______________________________________________ >> GeoTools-GT2-Users mailing list >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users >> > |
From: Jody G. <jod...@gm...> - 2024-01-24 00:59:01
|
I do not think anyone is answering you as the answer depends on how you are using the database and what your expectations are? If your application is using the database all the time it is worth making use of a connection pool, to recycle connections, rather than connect to the database directly. If your application is in a shared environment like JavaEE you may wish to look up a JNDI data source and share the database connections with the rest of the application? If your code only talks to the database for a bit, and then is quiet it may be kind to do as you say and create the dataStore, use the connections for a bit, and then dispose of everything until next time. -- Jody Garnett On Jan 14, 2024 at 3:33:14 AM, sunish <sun...@gm...> wrote: > Hello, > > I am developing an application using Geotools. The framework used for the > application is Quarkus. The application connects to the PostGIS database. > > Since it is a web application I want to minimize the overheads in > connecting to the database in each request. I want to reuse an already > connected database. > > I have maintained an application level DataStore object which gets created > when the application starts up. > > Map<String, Object> params = new HashMap<>(); > params.put("dbtype", "postgis"); > params.put("host", this.dbConfig.getHost()); > params.put("port", this.dbConfig.getPort()); > params.put("schema", "public"); > params.put("database" ,this.dbConfig.getDatabase()); > params.put("user", this.dbConfig.getUser()); > params.put("passwd", this.dbConfig.getPassword()); > params.put("preparedStatements", true); > params.put("encode functions", true); > > try { > this.dataStore = (JDBCDataStore) DataStoreFinder.getDataStore(params); > } catch (IOException e) { > > Logger.getLogger(DataSourceService.class.getName()).warning(e.getMessage()); > } catch (SQLException e) { > > Logger.getLogger(DataSourceService.class.getName()).warning(e.getMessage()); > } > --------- > > Then I am using the dataStore object in the rest of the places. > > Is this the proper way of doing or should I use DataStoreFinder each time > to find the datastore and dispose of the data store at the end of > processing request? > Can I plug connection pools like HikariCP to get datastore out of that > connection? > > When I leave the application idle for a long time I am getting this error. > > java.sql.SQLException: An I/O error occurred while sending to the backend. > > Please suggest the best way of doing it. > > Thanks in advance. > > Sunish. > > > > > > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |
From: Jody G. <jod...@gm...> - 2024-01-24 00:56:23
|
In my experience some it can be interesting to write tests that compare times, often people write tests in Europe which then fail when we run them in North America due to timezone offset. Options: 1. When you look at the test is it possible to providing in GMT or Z time for comparison? Look at the value prior to toString(). 2. I am not sure if it is a bug in the code, in the test, or worst case in the file format specification? -- Jody Garnett On Dec 19, 2023 at 9:03:50 AM, pie...@sy... wrote: > Hi, > > > > What is wrong with my settings ? > > > > When I run « mvn install », I have the following error: > > > > NetCDF gridcoverage module FAILURE > > > > To correct the problem I have to change the function > testGranuleSourceFileView() in the file NetCDFMosaicReaderTest.java. > > > > The two lines : > > assertEquals("2017-02-06 00:00:00.0", > nc1.getAttribute("time").toString()); > > assertEquals("2017-02-06 12:00:00.0", > nc2.getAttribute("time").toString()); > > > > should be change for > > assertEquals("2017-02-05 19:00:00.0", > nc1.getAttribute("time").toString()); > > assertEquals("2017-02-06 07:00:00.0", > nc2.getAttribute("time").toString()); > > > > > > My computer is in the zone (UTC -05:00) East (USA and Canada). It is > exactly the difference of time shown previously. > > > > > > Regards, > > > > > > Pierre > _______________________________________________ > GeoTools-GT2-Users mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > |
From: sunish <sun...@gm...> - 2024-01-14 11:33:41
|
Hello, I am developing an application using Geotools. The framework used for the application is Quarkus. The application connects to the PostGIS database. Since it is a web application I want to minimize the overheads in connecting to the database in each request. I want to reuse an already connected database. I have maintained an application level DataStore object which gets created when the application starts up. Map<String, Object> params = new HashMap<>(); params.put("dbtype", "postgis"); params.put("host", this.dbConfig.getHost()); params.put("port", this.dbConfig.getPort()); params.put("schema", "public"); params.put("database" ,this.dbConfig.getDatabase()); params.put("user", this.dbConfig.getUser()); params.put("passwd", this.dbConfig.getPassword()); params.put("preparedStatements", true); params.put("encode functions", true); try { this.dataStore = (JDBCDataStore) DataStoreFinder.getDataStore(params); } catch (IOException e) { Logger.getLogger(DataSourceService.class.getName()).warning(e.getMessage()); } catch (SQLException e) { Logger.getLogger(DataSourceService.class.getName()).warning(e.getMessage()); } --------- Then I am using the dataStore object in the rest of the places. Is this the proper way of doing or should I use DataStoreFinder each time to find the datastore and dispose of the data store at the end of processing request? Can I plug connection pools like HikariCP to get datastore out of that connection? When I leave the application idle for a long time I am getting this error. java.sql.SQLException: An I/O error occurred while sending to the backend. Please suggest the best way of doing it. Thanks in advance. Sunish. |
From: Peter S. <gs...@sm...> - 2023-12-21 17:17:24
|
Dear GeoTools users We are pleased to announce the release of the latest maintenance version of GeoTools (29.4). More details are available in the related blog post: https://geotoolsnews.blogspot.com/2023/12/geotools-294-released.html <https://geotoolsnews.blogspot.com/2023/10/geotools-293-released.html> Peter |
From: <pie...@sy...> - 2023-12-19 17:04:05
|
Hi, What is wrong with my settings ? When I run < mvn install >, I have the following error: NetCDF gridcoverage module FAILURE To correct the problem I have to change the function testGranuleSourceFileView() in the file NetCDFMosaicReaderTest.java. The two lines : assertEquals("2017-02-06 00:00:00.0", nc1.getAttribute("time").toString()); assertEquals("2017-02-06 12:00:00.0", nc2.getAttribute("time").toString()); should be change for assertEquals("2017-02-05 19:00:00.0", nc1.getAttribute("time").toString()); assertEquals("2017-02-06 07:00:00.0", nc2.getAttribute("time").toString()); My computer is in the zone (UTC -05:00) East (USA and Canada). It is exactly the difference of time shown previously. Regards, Pierre |