Re: [Geoserver-users] Error 5 reading HKEY_PERFORMANCE_DATA from the registry

2020-10-20 Thread Russell Grew
Hi Daniel,

If you are interested in performance I think the recommendation would be to 
host the web archive .war file using something like Apache Tomcat on windows.

That aside, I found your note about the user group informative. I have been 
thinking about proposing an update to the documentation to state the importance 
of running the service as a user or 'local system' rather than 'local service'. 
I recall some issues with GeoWebCache and permissions when running as local 
service. I am not sure if my experience is universal.

Cheers.

From: Calliess Daniel Ing. 
Sent: Wednesday, 21 October 2020 2:28 AM
To: 'geoserver-users@lists.sourceforge.net' 

Subject: [Geoserver-users] FW: Error 5 reading HKEY_PERFORMANCE_DATA from the 
registry

Hi,

in the meantime I found the solution to my problem. The 'Server Status' > 
'System Status' page seems to use 
oshi.software.os.windows.WindowsOperatingSystem to access system performance 
information. This requires the user, the GeoServer service is running under, to 
be in the local 'Performance Monitor Users' group.

After adding the service user to this group the error is no longer written to 
the log file.

Regards,
Daniel

From: Calliess Daniel Ing.
Sent: Thursday, October 8, 2020 3:56 PM
To: 'geoserver-users@lists.sourceforge.net' 
mailto:geoserver-users@lists.sourceforge.net>>
Subject: [Geoserver-users] Error 5 reading HKEY_PERFORMANCE_DATA from the 
registry

Hi,

I updated my GeoServer installation from version 2.15.1 to 2.18.0 using a self 
made Windows installer as described here: 
https://docs.geoserver.org/latest/en/developer/win-installer.html
While everything worked fine in the process and GeoServer is running stable, 
now every second an error message is written to the geoserver.log file:

2020-10-08 03:25:17,223 ERROR [windows.WindowsOperatingSystem] - Error 5 
reading HKEY_PERFORMANCE_DATA from the registry.

It seams that Error 5 means 'Access denied' when accessing the windows 
registry. Unfortunately I don't see a chance to check or set permissions on 
this registry key because it's a virtual key that is not listed in the registry 
editor. When I switch the GeoServer service user from the restricted user it is 
normally running under to LOCAL SYSTEM the error messages are no longer written 
to the log.

Does anyone have an idea why these errors happen and how to avoid them (aside 
from running the service as SYSTEM)?

Regards
Daniel
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] How to apply different styles for different geometry types in GeometryCollection?

2020-10-20 Thread Jody Garnett
Caught up with the JTS team.

There is a postgis function
https://postgis.net/docs/ST_CollectionExtract.html that covers this concept.

There are a couple implementations in JTS, GeometryExtracter is close but
only can do one geometry type at a time, and we want to do both Point and
MultiPoint at the same time.

The other interesting wrinkle ...
- Points (Point and MultiPoint) can be extracted into a a MultiPoint
- Lines (LineString and MultiLineString) can be extracted into a
MultiLineString
- Polygons (Polygon and MultiPolygon) ... cannot be extracted into a
MultiPolygon (because they may end up overlapping)

Jody


--
Jody Garnett


On Mon, 19 Oct 2020 at 07:29, Jody Garnett  wrote:

> This bug report is for a slightly different problem, when working with a
> geometry collection the ability to filter out only the points and
> multi-points.
> --
> Jody Garnett
>
>
> On Mon, 19 Oct 2020 at 02:21, Ron Lindhoudt  wrote:
>
>> You should probably use the existion function `geometryType` in the SLD
>> rule.
>> If you don't do that a polygon is visualised as a polygon and also point
>> (the centre of the polygon) for example.
>>
>> The only thing is that there are multiple geometry-types that represent
>> Point, Polygon and Line.
>>
>> Polygon:
>> - Polygon
>> - MultiPolygon
>> - MultiSurface
>> - CurvePolygon
>> - GeometryCollection (this is a difficult one!)
>>
>> Line:
>> - LineString
>> - CircularString
>> - CompoundCurve
>> -CompoundRing
>> - CircularRing
>> - MultiCurve
>> - MultiLineString
>>
>> Point:
>> - Point
>> - Multipoint
>>
>> It would be nice if there was a separate function "mainGeometryType" that
>> just returns Point, Polygon, Line or Collection
>>
>> On Monday, 19 October 2020, 10:32:15 CEST, Florian Hoedt <
>> florian.ho...@thuenen.de> wrote:
>>
>>
>> Hi,
>>
>> Sorry for interrupting into this conversation, but: Are you aware that
>> SLD can style different geometries out of the box? See attached SLD for the
>> INSPIRE theme Environmental Monitoring Facilities which does use survey
>> area (Polygon) and representative point (Point) as geometry. But maybe this
>> is about something different and you can ignore this.
>> yours, Florian
>> --
>> MSc Florian Hoedt
>> Head Geoinformatics | OpenData Representative
>> Thünen Institute, Centre for Information Management
>> Bundesallee 44
>> 38116 Braunschweig
>>
>> Tel:  +49 531 596-1428
>> Mobil: +49 162 92 50 275
>> Fax:  +49 531 596-1499
>> Mail: florian.ho...@thuenen.de
>> Web:  www.thuenen.de
>>
>> The Johann Heinrich von Thünen Institute, Federal Research Institute for
>> Rural Areas, Forestry and Fisheries – Thünen Institute in brief – consists
>> of 14 specialized institutes that carry out research and provide policy
>> advice in the fields of economy, ecology and technology.
>>
>> --
>> *Von: *"Jody Garnett" 
>> *An: *"groznykh" 
>> *CC: *"Geoserver USERS" 
>> *Gesendet: *Montag, 19. Oktober 2020 07:05:10
>> *Betreff: *Re: [Geoserver-users] How to apply different styles for
>> different geometry types in GeometryCollection?
>>
>> I think it is a good idea, but have not had time/budget to work on this
>> myself.
>> Indeed I have had this draft email replying to you open for a month or
>> so. I have been very focused on transitioning our build infrastructure,
>> with some small development implementing mapbox style expression support :)
>> Do you have any experience with Java? Or if there are any volunteers on
>> this list interested it should be a combination of:
>>
>> 1) https://docs.geotools.org/latest/userguide/tutorial/function.html
>>
>> 2) A method similar to:
>>
>> public  T evaluate(Object object, Class context) {
>> Expression pointExpression = parameters.get(0);
>> Geometry geometry = pointExpression.evaluate(object,
>> Geometry.class);
>> if( geometry == null) return geometry;
>>
>> Expression dimensionExpression = parameters.get(1);
>> Integer dimension = dimensionExpression.evaluate(object,
>> Integer.class);
>>
>>
>>switch(dimension) {
>>case 0: return toPuntal(geometry);
>>case 1: return toLineal(geometry);
>>case 2: return toPolygonal(geometry);
>>default:
>>throw IllegalArgumentException("Dimension "+dimension+"
>> invalid (0,1 or 2 supported)");
>>}
>> }
>>
>> 3) And then methods to collect each type, this could probably be done a
>> bit more neatly
>>
>>return Geometry toPuntal(Geometry geometry){
>> if( geometry instanceof Puntal) return geometry;
>> if( geometry instanceof GeometryCollection){
>>   GeometryCollection collection = (GeometryCollection)
>> geometry;
>>   ArrayList points = new ArrayList<>();
>>   for (int i; i>   Geometry g = collection.getGeometryN(geometry,i);
>>   Geometry = toPuntal(g);
>>   if( g instanceof Point)
>>points.add( (Point) g );

[Geoserver-users] FW: Error 5 reading HKEY_PERFORMANCE_DATA from the registry

2020-10-20 Thread Calliess Daniel Ing .
Hi,

in the meantime I found the solution to my problem. The 'Server Status' > 
'System Status' page seems to use 
oshi.software.os.windows.WindowsOperatingSystem to access system performance 
information. This requires the user, the GeoServer service is running under, to 
be in the local 'Performance Monitor Users' group.

After adding the service user to this group the error is no longer written to 
the log file.

Regards,
Daniel

From: Calliess Daniel Ing.
Sent: Thursday, October 8, 2020 3:56 PM
To: 'geoserver-users@lists.sourceforge.net' 

Subject: [Geoserver-users] Error 5 reading HKEY_PERFORMANCE_DATA from the 
registry

Hi,

I updated my GeoServer installation from version 2.15.1 to 2.18.0 using a self 
made Windows installer as described here: 
https://docs.geoserver.org/latest/en/developer/win-installer.html
While everything worked fine in the process and GeoServer is running stable, 
now every second an error message is written to the geoserver.log file:

2020-10-08 03:25:17,223 ERROR [windows.WindowsOperatingSystem] - Error 5 
reading HKEY_PERFORMANCE_DATA from the registry.

It seams that Error 5 means 'Access denied' when accessing the windows 
registry. Unfortunately I don't see a chance to check or set permissions on 
this registry key because it's a virtual key that is not listed in the registry 
editor. When I switch the GeoServer service user from the restricted user it is 
normally running under to LOCAL SYSTEM the error messages are no longer written 
to the log.

Does anyone have an idea why these errors happen and how to avoid them (aside 
from running the service as SYSTEM)?

Regards
Daniel
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Raster Dynamic Colormap based on current WMS/canvas request?

2020-10-20 Thread Richard Duivenvoorde
Hi List,

In QGIS it is possible to style a raster in such a way that QGIS will take the 
values of the cells in CURRENT mapcanvas view, and based on the found min/max 
(in that area) create the colormap classes.

To do something like this in Geoserver I googled a community extension:

https://docs.geoserver.org/stable/en/user/community/colormap/index.html

But (without testing) I wanted to ask here if:
- I really need the extension, or I can do without and just use a standard sld 
(if yes, plz any examples?)
- to me it looks like this extension only works with the TOTAL min/max and not 
the dynamic min/max of current request?
(based on this quote: "A preliminar gdalinfo -stats command needs to be run 
against the coverages in order to create the PAM Auxiliary file containing 
statistics and metadata.")

Attached a minified QGIS settings/example, which I hope will pass attachement 
limits... Saving that as SLD results in fixed ColorMapEntries...

Thanks for any pointers.

Regards,

Richard Duivenvoorde

___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Appscheme 2.15 2.18

2020-10-20 Thread Jody Garnett
Okay, that is clearly an issue to resolve.

Can I ask you to report it, and I am not sure how you can do so in a
reproducible fashion. Perhaps the app schema tutorial has sample data?

Jody

On Tue, Oct 20, 2020 at 12:39 AM Verbeeck Bart (AIV) <
bart.verbe...@vlaanderen.be> wrote:

> Jody
>
>
>
> I do get a different representation in both examples.
>
>
>
> It has nothing to do with the quotes (I forgot to type them over).
>
> The first problem (4236-4258) I could solve myself.
>
> But the representation is a problem.
>
> Inspire requires the URI representation.
>
>
>
>
>
> Bart
>
>
>
> *Van:* Jody Garnett 
> *Verzonden:* Monday, October 19, 2020 4:20 AM
> *Aan:* Verbeeck Bart (AIV) 
> *CC:* geoserver-users@lists.sourceforge.net
> *Onderwerp:* Re: [Geoserver-users] Appscheme 2.15 2.18
>
>
>
> Bart:
>
>
>
> This may be more a change on the GML output side, rather than app-schema
> specifically.
>
>
>
> Is it correct that the difference you are seeing is if the srsName value
> has quotes or not? I would assume quotes would be required, and perhaps the
> xml parser was being kind not accepting a value without quotes previously.
>
>
>
> For encoding of EPSG codes there are a number of settings. And the ability
> to override, if your client really expects on representation over another
>
> https://docs.geoserver.org/latest/en/user/services/wfs/webadmin.html#gml
> 
>
>- The OGC HTTP URL format is
>http://www.opengis.net/gml/srs/epsg.xml#4258
>
> 
>- The OGC HTTP URI format is http://www.opengis.net/def/crs/EPSG/0/4258
>
> 
>
> That page is a bit hard to follow I think we may need to make a table of
> what is expected where.
>
> I tend to recommend the defaults, which mirror the EPSG representation
> expected for each GML standard.
>
>
>
> It is concerning if you are getting one representation for MultiSurface
> and a different one for Polygon? Is this something that you can reproduce
> with the same data directory?
>
>
>
> --
>
> Jody Garnett
>
>
>
>
>
> On Sat, 17 Oct 2020 at 03:10, Verbeeck Bart (AIV) <
> bart.verbe...@vlaanderen.be> wrote:
>
> Hello
>
>
>
> I see many improvements in the new versions, but I noticed an issue
> concerning the app schema plugin.
>
>
>
> I have two installations, completely the same
>
>
>
> 2.15.0
>
>
> https://bgeoserverinspireaiv.azurewebsites.net/inspire/elu/wfs?request=GetFeature=elu:ExistingLandUseObject=1
> 
>
>
>
> 2.18.0 (Ichecked 2.17.3 behaves the same)
>
>
> https://aiv-beta-geoserver-inspire.azurewebsites.net/inspire/elu/wfs?request=GetFeature=elu:ExistingLandUseObject=1
> 
>
>
>
> The MultiSurface srsName is wrong in the newer versions
>
> srsName="http://www.opengis.net/def/crs/EPSG/0/4326
> 

[Geoserver-users] Make "LayerIdentifier" aware of the "GetMapCallback"

2020-10-20 Thread Yang
Hi:
 
When a GetFeatureInfo requested is served, a LayerIdentifier will be 
initialized to render a map and calculated features inside the hitArea.
 
And the rendering procedure is almost the same as a regular GetMap request, 
however it does not consider the GetMapCallabck.
 
I wonder if it is possible to make the LayerIdentifier aware of the 
GetMapCallback?
 ​___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Appscheme 2.15 2.18

2020-10-20 Thread Verbeeck Bart (AIV)
Jody

I do get a different representation in both examples.

It has nothing to do with the quotes (I forgot to type them over).
The first problem (4236-4258) I could solve myself.
But the representation is a problem.
Inspire requires the URI representation.

[cid:image001.png@01D6A6C4.E436DD50]

Bart

Van: Jody Garnett 
Verzonden: Monday, October 19, 2020 4:20 AM
Aan: Verbeeck Bart (AIV) 
CC: geoserver-users@lists.sourceforge.net
Onderwerp: Re: [Geoserver-users] Appscheme 2.15 2.18

Bart:

This may be more a change on the GML output side, rather than app-schema 
specifically.

Is it correct that the difference you are seeing is if the srsName value has 
quotes or not? I would assume quotes would be required, and perhaps the xml 
parser was being kind not accepting a value without quotes previously.

For encoding of EPSG codes there are a number of settings. And the ability to 
override, if your client really expects on representation over another
https://docs.geoserver.org/latest/en/user/services/wfs/webadmin.html#gml

  *   The OGC HTTP URL format is 
http://www.opengis.net/gml/srs/epsg.xml#4258
  *   The OGC HTTP URI format is 
http://www.opengis.net/def/crs/EPSG/0/4258
That page is a bit hard to follow I think we may need to make a table of what 
is expected where.
I tend to recommend the defaults, which mirror the EPSG representation expected 
for each GML standard.

It is concerning if you are getting one representation for MultiSurface and a 
different one for Polygon? Is this something that you can reproduce with the 
same data directory?

--
Jody Garnett


On Sat, 17 Oct 2020 at 03:10, Verbeeck Bart (AIV) 
mailto:bart.verbe...@vlaanderen.be>> wrote:
Hello

I see many improvements in the new versions, but I noticed an issue concerning 
the app schema plugin.

I have two installations, completely the same

2.15.0
https://bgeoserverinspireaiv.azurewebsites.net/inspire/elu/wfs?request=GetFeature=elu:ExistingLandUseObject=1

2.18.0 (Ichecked 2.17.3 behaves the same)
https://aiv-beta-geoserver-inspire.azurewebsites.net/inspire/elu/wfs?request=GetFeature=elu:ExistingLandUseObject=1

The MultiSurface srsName is wrong in the newer versions
srsName="http://www.opengis.net/def/crs/EPSG/0/4326"

it should be

Re: [Geoserver-users] Using the ImageMosaic plugin for raster with time and elevation data

2020-10-20 Thread Andrea Aime
Hi,
the attachments are not visible from the SF archive, as far as I can tell:
https://sourceforge.net/p/geoserver/mailman/message/37131947/
(it if was, I could not do anything about it, believe only a direct
request to SF would help removing the attachments)

That said, it would not help much, this list has almost 800 subscribers,
they all received
the config files. Best to stop using the credentials in question as soon as
possible.

Cheers
Andrea


On Tue, Oct 20, 2020 at 2:53 AM wesley mezine 
wrote:

> The administrator can you remove my attachments, please ?
>
> Em seg, 19 de out de 2020 16:42, Alexander Petkov 
> escreveu:
>
>> The problem is evident right here:
>> ===
>> Caused by: org.postgresql.util.PSQLException: FATAL: password
>> authentication failed for user "wandersen"
>> at
>> org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:514)
>> at
>> org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:141)
>> at
>> org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:192)
>> at
>> org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
>> at org.postgresql.jdbc.PgConnection.(PgConnection.java:195)
>> at org.postgresql.Driver.makeConnection(Driver.java:454)
>> at org.postgresql.Driver.connect(Driver.java:256)
>> 
>>
>> The password in datastore.properties needs to be corrected
>>
>>
>> On Mon, Oct 19, 2020 at 5:05 AM wesley mezine 
>> wrote:
>>
>>> Good Morning,
>>>
>>> I am sending attached the log files and the files used to create the
>>> mosaic image.
>>>
>>> Regards,
>>>
>>> Wesley
>>>
>>> Em sáb., 17 de out. de 2020 às 16:47, Alexander Petkov <
>>> green...@gmail.com> escreveu:
>>>
 We need the rest of the log trace.


 On 10/11/20, wmezine  wrote:
 > Hi,
 >
 > I followed all the steps in the tutorial to create a time series of
 images,
 > according to the tutorial:
 >
 >
 https://docs.geoserver.org/latest/en/user/tutorials/imagemosaic_timeseries/imagemosaic_timeseries.html
 > <
 https://docs.geoserver.org/latest/en/user/tutorials/imagemosaic_timeseries/imagemosaic_timeseries.html
 >
 >
 >
 > I can do it by generating the shapefile, but when I do it with
 > data.properties to connect to Postgis, the following error occurs:
 >
 > /Could not list layers for this store, an error occurred retrieving
 them:
 > Failed to create reader from file:data/mosaico and hints Hints:
 REPOSITORY
 > =
 > org.geoserver.catalog.CatalogRepository@915b19 EXECUTOR_SERVICE =
 > java.util.concurrent.ThreadPoolExecutor@1460d69[Running, pool size =
 0,
 > active threads = 0, queued tasks = 0, completed tasks = 0] System
 defaults:
 > GRID_COVERAGE_FACTORY = GridCoverageFactory TILE_ENCODING = null
 > FEATURE_FACTORY =
 org.geotools.feature.LenientFeatureFactoryImpl@1e7efef
 > FORCE_AXIS_ORDER_HONORING = http FORCE_LONGITUDE_FIRST_AXIS_ORDER =
 true
 > FILTER_FACTORY = FilterFactoryImpl LENIENT_DATUM_SHIFT = true
 > COMPARISON_TOLERANCE = 1.0E-8 STYLE_FACTORY = StyleFactoryImpl/
 >
 > Can someone help me, please ?
 >
 > Regards,
 >
 > Wesley
 >
 >
 >
 >
 >
 > --
 > Sent from:
 http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
 >
 >
 > ___
 > Geoserver-users mailing list
 >
 > Please make sure you read the following two resources before posting
 to this
 > list:
 > - Earning your support instead of buying it, but Ian Turton:
 > http://www.ianturton.com/talks/foss4g.html#/
 > - The GeoServer user list posting guidelines:
 > http://geoserver.org/comm/userlist-guidelines.html
 >
 > If you want to request a feature or an improvement, also see this:
 >
 https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
 >
 >
 > Geoserver-users@lists.sourceforge.net
 > https://lists.sourceforge.net/lists/listinfo/geoserver-users
 >

>>> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

Regards, Andrea Aime

== GeoServer