Re: [Geoserver-users] Max legend graphic memory usage exceeded.

2024-06-25 Thread Jody Garnett
 I was not aware there was a limit, checking the code for that exception
shows it is thrown by something called Tally.java which calculates max
memory based on the max memory set aside for WMS requests.

https://github.com/geoserver/geoserver/blob/b3b3ca4985f8fba292dea910d9d3317e72b00edb/src/wms/src/main/java/org/geoserver/wms/legendgraphic/Tally.java#L26

public Tally(WMS wms) {
if (wms != null && wms.getMaxRequestMemory() > 0) {
this.maxMemory = wms.getMaxRequestMemory() * 1024L; // KB to
bytes
} else {
this.maxMemory = UNLIMITED;
}
}

Consider increasing the WMS  "Max rendering memory" and see if has an
effected:
https://docs.geoserver.org/stable/en/user/services/wms/webadmin.html

(The WMS max memory setting should be documented as "Resource consumption
limits" on that page but I do not see anything).

--
Jody Garnett


On Jun 25, 2024 at 1:27:01 PM, Michael STEIGEMANN via Geoserver-users <
geoserver-users@lists.sourceforge.net> wrote:

> Hello,
>
>
>
> in my geoserver instance the generation of legend graphics does not work
> anymore. I use the following URL:
>
> http://localhost:8080/geoserver/ows?service=WMS=GetLegendGraphic=image%2Fpng=12=12=geodata%3Amylayer==1.3.0_VERSION=1.1.0_OPTIONS=forceLabels%3Aon=564=xxx
>
>
> The errormessage is:
>
>
>
> http://www.opengis.net/ogc xmlns:xsi=
> http://www.w3.org/2001/XMLSchema-instance
>  version="1.3.0" xsi:schemaLocation=http://www.opengis.net/ogc
> https://nbmssp8/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd?authkey=56f60c87-989c-4f71-b2bb-14d5c8cf20e3
> 
> >
>
>  Max legend graphic memory
> usage exceeded. 
>
> 
>
>
>
> The WMS map rendering works as expected. The tomcat memory settings of the
> tomcat are JvmMs=1024 and JvmMx=4096.
>
>
>
> Where can I change the setting?
>
>
>
> I am using GeoServer Release *2.24.1*. on windows.
>
>
>
> Thanks and all the best,
>
> Michael
>
>
>
>
>
>
> ___
> 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


[Geoserver-users] Max legend graphic memory usage exceeded.

2024-06-25 Thread Michael STEIGEMANN via Geoserver-users
Hello,

in my geoserver instance the generation of legend graphics does not work 
anymore. I use the following URL:
http://localhost:8080/geoserver/ows?service=WMS=GetLegendGraphic=image%2Fpng=12=12=geodata%3Amylayer==1.3.0_VERSION=1.1.0_OPTIONS=forceLabels%3Aon=564=xxx

The errormessage is:

http://www.opengis.net/ogc 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance version="1.3.0" 
xsi:schemaLocation=http://www.opengis.net/ogc 
https://nbmssp8/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd?authkey=56f60c87-989c-4f71-b2bb-14d5c8cf20e3>
 Max legend graphic memory usage 
exceeded. 


The WMS map rendering works as expected. The tomcat memory settings of the 
tomcat are JvmMs=1024 and JvmMx=4096.

Where can I change the setting?

I am using GeoServer Release 2.24.1. on windows.

Thanks and all the best,
Michael



___
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] Docker not loading layers

2024-06-25 Thread Kristian Nils Robin Morin via Geoserver-users
25 Jun 08:11:53 ERROR  [storage.DefaultStorageFinder] - Found system
environment variableGEOSERVER_DATA_DIR set to /opt/geoserver_data/ ,
*which is not writable*

Check your file permissions against the user running geoserver in your
container.

On Tue, Jun 25, 2024 at 10:33 AM emmexx  wrote:

> I'm new to using docker to run geoserver so I could be missing something.
>
> I followed the web page on running geoserver with docker.
>
> I'm migrating to a new server and to a new geoserver version.
>
> My server uses podman instead of docker but I don't think that is the
> problem.
>
> As root I run the following command:
>
> podman run -it -p 8080:8080 \
>--env SKIP_DEMO_DATA=true \
>--env INSTALL_EXTENSIONS=true --env STABLE_EXTENSIONS="wps" \
>--mount src="/root/my_data/data",target=/opt/geoserver_data/,type=bind \
>docker.osgeo.org/geoserver:2.25.2
>
> Geoserver/web is accessible but:
>
> - the demo layers are there
> - my layers are not there
>
> In the output the only relevant message I could find is:
>
> 25 Jun 08:11:53 ERROR  [storage.DefaultStorageFinder] - Found system
> environment variableGEOSERVER_DATA_DIR set to /opt/geoserver_data/ ,
> which is not writeable
>
> or similar WARN messages.
>
> What can I do?
>
> Thank you
>
> maxx
>
>
>
> ___
> 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
>


-- 
Med hilsen

*Kristian Morin*
Geodata, systemutvikling
Enhet for kart og arkitektur
Sentralbord: 72 54 25 00
Telefon: 90539229
___
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] Docker not loading layers

2024-06-25 Thread emmexx

I'm new to using docker to run geoserver so I could be missing something.

I followed the web page on running geoserver with docker.

I'm migrating to a new server and to a new geoserver version.

My server uses podman instead of docker but I don't think that is the 
problem.


As root I run the following command:

podman run -it -p 8080:8080 \
  --env SKIP_DEMO_DATA=true \
  --env INSTALL_EXTENSIONS=true --env STABLE_EXTENSIONS="wps" \
  --mount src="/root/my_data/data",target=/opt/geoserver_data/,type=bind \
  docker.osgeo.org/geoserver:2.25.2

Geoserver/web is accessible but:

- the demo layers are there
- my layers are not there

In the output the only relevant message I could find is:

25 Jun 08:11:53 ERROR  [storage.DefaultStorageFinder] - Found system 
environment variableGEOSERVER_DATA_DIR set to /opt/geoserver_data/ , 
which is not writeable


or similar WARN messages.

What can I do?

Thank you

maxx



___
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] PostgreSQL and PostGIS

2024-06-25 Thread Russ Hore
Have you installed the ostGIS extension?

CREATE EXTENSION postgis;

If so you can add a Geometry column with;

https://postgis.net/docs/AddGeometryColumn.html

Set the SRID to what your data is.

Then you ST_MakePoint (If it is point data) to update the new column using the 
data from other fields in the row.

https://postgis.net/docs/ST_MakePoint.html

Something like UPDATE tablename set the_geom=ST_makePoint(X, Y)


> 
> Jody,
>  
> If I have a PostgreSQL database that contains spatial coordinates, do you 
> know how I convert that database into PostGIS format so I can publish it on 
> GeoServer?
>  
> Jim Rogers
> ___
> 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


Re: [Geoserver-users] PostgreSQL and PostGIS

2024-06-25 Thread Alexandre Gacon
Hello Jim,

To do so, you have first to add a Geometry column to your table (you can be
more precise on the type of Geometry by using for example Point as type).
You have to define also the SRS of the coordinates.

To populate your column you can for example use the ST_MakePoint function
using the coordinates available in the other columns.

The last step would be to add a spatial index on the geometry column in
order to have great performances.

Have a look at https://postgis.net/docs/reference.html, the documentation
is quite complete.

Regards
Alexandre

Le lun. 24 juin 2024 à 22:37, Jim Rogers  a écrit :

> Jody,
>
>
>
> If I have a PostgreSQL database that contains spatial coordinates, do you
> know how I convert that database into PostGIS format so I can publish it on
> GeoServer?
>
>
>
> Jim Rogers
> ___
> 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