Re: [Geoserver-users] About the Geoserver data in leaflet

2020-09-09 Thread Vera Green
In my experience figuring out this plugin is the way to go.
You can get the legend through getFeatureInfo.

https://github.com/heigeo/leaflet.wms



On Wed., Sep. 9, 2020, 5:11 p.m. Endi Soares, 
wrote:

> Hi,
>
> I want to consume the Geoserver data in the leaflet, someone has an
> example index.html where I can see the procedures.
> If possible with presentation of the legend.
>
> Best regards
> --
> Endi Soares*Geógrafo *
> m:(+238) 5809479
> a:Praia, Cabo Verdee:
> esoares.bvc.2...@gmail.com e: endy.soare...@gmail.com
>
> 
> ___
> 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] About the Geoserver data in leaflet

2020-09-09 Thread Phil Scadden
Geoserver is just another WMS provider from the point of view of leaflet. I 
would consider using one of WMS enhancement plugins, esp
Leaflet.wms and see examples eg
http://heigeo.github.io/leaflet.wms/examples/

Legend presentation is extremely application-dependent. However, it is just a 
case of deciding where an image is going to go and setting the img src 
attribute with javascript to a wms GetLegendGraphic call. For scale-dependent 
legends, set a handler to L.map.zoomlevelschange and modify the
parameter in the img src appropriately.



From: Endi Soares 
Sent: Thursday, 10 September 2020 11:07
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] About the Geoserver data in leaflet

Hi,

I want to consume the Geoserver data in the leaflet, someone has an example 
index.html where I can see the procedures.
If possible with presentation of the legend.

Best regards
--
Endi SoaresGeógrafo
m:(+238) 5809479
a:Praia, Cabo Verdee:
esoares.bvc.2...@gmail.com e: 
endy.soare...@gmail.com

[Image removed by sender.]
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.
___
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] About the Geoserver data in leaflet

2020-09-09 Thread Endi Soares
Hi,

I want to consume the Geoserver data in the leaflet, someone has an example
index.html where I can see the procedures.
If possible with presentation of the legend.

Best regards
-- 
Endi Soares*Geógrafo *
m:(+238) 5809479
a:Praia, Cabo Verdee:
esoares.bvc.2...@gmail.com e: endy.soare...@gmail.com


___
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] Geoserver doesn't recognize Postgis layers after copying the 'Workspaces' folder

2020-09-09 Thread Jean Pommier

Hi Pierric,

I'd say this is related to the encryption of the postgis password. 
You'll have to redefine it. It has already happened to me.


I'm doing this by memory, but I think it should work :

1) go  to the folder of your postgis datastore

2) remove, in datastore.xml the line about the password

3) reload geoserver

the datastore should be visible now. Just open it and set the password. 
It should be enough to get back all your layers



Best,

Jean

*Jean Pommier -- pi-Geosolutions*

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : j...@pi-geosolutions.fr
Web : www.pi-geosolutions.fr

Le 09/09/2020 à 21:04, Pierric de Laborie a écrit :

Hello,

I installed the version 2.17.1 of Geoserver and moved my "workspaces" 
folder (from version 2.16.2) to the data folder, hoping that Geoserver 
would recognize all my layers. It did well for all the layers based on 
files (shapefiles and rasters).
However the other vector layers based on a Postgis store were not 
recognized. The Postgis store was not recognized either. I tried to 
recreate a Postgis store with the exact same definition (name) 
successfully and restarted the Geoserver but it didn't help to 
recognize all the xml layer definitions located in the same folder as 
the store definition (in workspaces folder).

Is there any way to avoid publishing explicitly every Postgis layer again?

Thanks!
Pierric


___
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] Geoserver doesn't recognize Postgis layers after copying the 'Workspaces' folder

2020-09-09 Thread Pierric de Laborie
Hello,

I installed the version 2.17.1 of Geoserver and moved my "workspaces"
folder (from version 2.16.2) to the data folder, hoping that Geoserver
would recognize all my layers. It did well for all the layers based on
files (shapefiles and rasters).
However the other vector layers based on a Postgis store were not
recognized. The Postgis store was not recognized either. I tried to
recreate a Postgis store with the exact same definition (name) successfully
and restarted the Geoserver but it didn't help to recognize all the xml
layer definitions located in the same folder as the store definition (in
workspaces folder).
Is there any way to avoid publishing explicitly every Postgis layer again?

Thanks!
Pierric
___
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] separate layers with main name - title

2020-09-09 Thread Rahkonen Jukka (MML)
Hi,

Read about layer groups 
https://docs.geoserver.org/stable/en/user/data/webadmin/layergroups.html. The 
Container tree option is probably what you want.

-Jukka Rahkonen-

Lähettäjä: Endi Soares 
Lähetetty: keskiviikko 9. syyskuuta 2020 13.33
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] separate layers with main name - title

Hi group,

How can I present the layers with a title separating them?


[image.png]

--
Endi SoaresGeógrafo
m:(+238) 5809479
a:Praia, Cabo Verdee:
esoares.bvc.2...@gmail.com e: 
endy.soare...@gmail.com

[http://cdn2.hubspot.net/hubfs/184235/dev_images/signature_app/linkedin_sig.png]
___
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] separate layers with main name - title

2020-09-09 Thread Endi Soares
Hi group,

How can I present the layers with a title separating them?


[image: image.png]

-- 
Endi Soares*Geógrafo *
m:(+238) 5809479
a:Praia, Cabo Verdee:
esoares.bvc.2...@gmail.com e: endy.soare...@gmail.com


___
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] GeoServer changes date format in WMS GetFeatureInfo

2020-09-09 Thread Ian Turton
I don't think that your issue is the same as the one you link to, that is
to do with changing times to UTC before storing them, where as yours is a
formatting issue. If you are storing the date as a timestamp then the
formatting of the getFeatureInfo is controlled by the freemarker template.
>From a quick look at the documentation (
https://freemarker.apache.org/docs/ref_builtins_date.html#ref_builtin_date_datetype)
it looks like you need to use something like ${aDate?iso_utc}

Ian

On Wed, 9 Sep 2020 at 08:24, Erik Böhm  wrote:

> Dear Geoserver Community,
>
>
>
> I have a problem that has already been addressed several times, but
> unfortunately the solution suggested in theses threads doesn’t help solving
> our problem.
>
>
>
> What I do is publishing a time enabled WMS with Geoserver 2.16.0 from a
> PostGIS DB. The features are stored with an time attribute that is
> formatted in the ISO date format %Y-%m-%d (2019-04-09).
>
>
>
> When calling the GetFeatureInfo, Geoserver returns the date in the
> following date-time format: 4/9/19 12:00 AM.
>
> Looking into the GetCapabilties, I get the following for the time
> dimension:
>
>
>
> 
>
> 2012-09-11T22:00:00.000Z/2019-04-08T22:00:00.000Z/P1D
>
> 
>
>
>
> As mentioned in other posts, when looking at the GeoJSON representation,
> the format is alright.
>
>
>
> As suggested in this post
> https://gis.stackexchange.com/questions/173375/date-format-in-geoserver-wms-requests-strange
> ,
>
> We set the server to local time handling, but the displayed format is
> still the same.
>
>
>
> Has anyone experienced the same and has a suggestion, how we can solve
> this?
>
>
>
> Thank you very much in advance!
>
>
>
> Kind regards!
>
>
>
> Mit freundlichen Grüßen
>
> i.A. Erik Böhm
>
>
>
>
> -
>
>
>
> [image: BSH] 
>
> *Erik Böhm,  *M4209
>
> *Open Data Koordination*
>
>
>
> Tel  +49-40-3190-3429 (Neue Nummer ab 1.4.20) | *erik.bo...@bsh.de
> *
>
> Fax +49-40-3190-5000
>
> Bernhard-Nocht-Straße 78, 20359 Hamburg
>
>
>
> Das Bundesamt für Seeschifffahrt und Hydrographie (BSH)
>  ist eine Bundesoberbehörde im
> Geschäftsbereich des Bundesministerium für Verkehr und digitale
> Infrastruktur 
>
>
>
>
>
>
> ___
> 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
>


-- 
Ian Turton
___
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] GeoServer changes date format in WMS GetFeatureInfo

2020-09-09 Thread Andrea Aime
On Wed, Sep 9, 2020 at 9:34 AM Erik Böhm  wrote:

> When calling the GetFeatureInfo, Geoserver returns the date in the
> following date-time format: 4/9/19 12:00 AM.
>

GetFeatureInfo has many formats, which one are we talking about? GeoJSON
and GML should behave like WFS,
HTML can be customized via templates
,
plain text can only be tweaked by changing the java code producing it (with
some dev skills, it could be made template driven like HTML, if one desires
so).

Cheers
Andrea

== GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf
Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa
(LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549
http://www.geo-solutions.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.*
___
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] GeoServer changes date format in WMS GetFeatureInfo

2020-09-09 Thread Erik Böhm
Dear Geoserver Community,

I have a problem that has already been addressed several times, but 
unfortunately the solution suggested in theses threads doesn't help solving our 
problem.

What I do is publishing a time enabled WMS with Geoserver 2.16.0 from a PostGIS 
DB. The features are stored with an time attribute that is formatted in the ISO 
date format %Y-%m-%d (2019-04-09).

When calling the GetFeatureInfo, Geoserver returns the date in the following 
date-time format: 4/9/19 12:00 AM.
Looking into the GetCapabilties, I get the following for the time dimension:


2012-09-11T22:00:00.000Z/2019-04-08T22:00:00.000Z/P1D


As mentioned in other posts, when looking at the GeoJSON representation, the 
format is alright.

As suggested in this post 
https://gis.stackexchange.com/questions/173375/date-format-in-geoserver-wms-requests-strange
 ,
We set the server to local time handling, but the displayed format is still the 
same.

Has anyone experienced the same and has a suggestion, how we can solve this?

Thank you very much in advance!

Kind regards!

Mit freundlichen Grüßen
i.A. Erik Böhm

-

[BSH]

Erik Böhm,  M4209
Open Data Koordination

Tel  +49-40-3190-3429 (Neue Nummer ab 1.4.20) | 
erik.bo...@bsh.de
Fax +49-40-3190-5000
Bernhard-Nocht-Straße 78, 20359 Hamburg

Das Bundesamt für Seeschifffahrt und Hydrographie 
(BSH) ist eine Bundesoberbehörde im 
Geschäftsbereich des Bundesministerium für Verkehr und digitale 
Infrastruktur




___
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