Re: [Geoserver-users] Parameterized data_dir

2018-11-02 Thread Nuno Oliveira
Hi,
your configuration look good, did you install the Backup & Restore
module ?
https://docs.geoserver.org/latest/en/user/community/backuprestore/insta
llation.html
Regards,
Nuno Oliveira
On Fri, 2018-11-02 at 14:17 +0100, Víctor González wrote:
> Hi all,
> 
> I was trying to use the technique explained here: 
> 
> https://docs.geoserver.org/latest/en/user/community/backuprestore/con
> figtemplate.html 
> 
> but I cannot make it work. I set the host of a PG datastore to
> ${mypghost}, wrote a /geoserver-environment.properties with
> mypghost=localhost and then restarted with
> -DALLOW_ENV_PARAMETRIZATION=true but it doesn't connect (it does when
> setting "localhost" directly).
> 
> Then I tried to remove the geoserver-environment.properties file and
> set the logging level to verbose but I don't see this message in the
> logs anywhere:
> 
> https://github.com/geoserver/geoserver/blob/master/src/platform/src/m
> ain/java/org/geoserver/platform/GeoServerEnvironment.java#L104
> https://github.com/geoserver/geoserver/blob/master/src/platform/src/m
> ain/java/org/geoserver/platform/GeoServerEnvironment.java#L120
> 
> It seems like the bean is never initialized. Do I need to configure
> something else to enable this feature?
> 
> Thanks in advance.
> 
> -- 
> Víctor González
> http://geomati.co
> ___
> 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://w
> ww.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines: http://geoserver.org/co
> mm/userlist-guidelines.html
> 
> If you want to request a feature or an improvement, also see this: ht
> tps://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,
Nuno Oliveira
==
GeoServer Professional Services from the
experts! 
Visit http://goo.gl/it488V for more information.
==

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

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


Re: [Geoserver-users] Dynamic Workspaces with dynamic mapping query string

2018-11-02 Thread Olyster
Hi,

geoserver layers can be generated from SQL. Moreover you can add parameters
on each one.

For example, you can setup a layer as "select ID,geometryField, country from
table where country = %cntry%" and then define a "cntry" parameter to this
view.

You can then perform GetMap or GetFeature requests and pass the cntry
parameter.

More info here :

https://docs.geoserver.org/stable/en/user/data/database/sqlview.html

Hope this helps.



--
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] Dynamic Workspaces with dynamic mapping query string

2018-11-02 Thread Tom Wang
Hi GeoServer Experts,

I am new on geoserver. We are trying to move esri to open source. I have
worked with esri software for past years years. Now, I just set up a
GeoServer 2.14 on my pc. It was very strange forward to get map services
running with shapefile and postgis database as well. Great experiences!!

A major function in our current application is using ArcGIS Server dynamic
map server with a Dynamic Workspaces. For example, our application can
create a map for Foreign-Born Population after any combination of countries
selected by a web user. Esri has Dynamic map services. The map services
with a database connection set up called dynamic workspace. developer can
pass any query string dynamically  based on user needs "select country,
population from table1 inner join table2 ...".

The advantage of the dynamic workspace is that maps created at server side
with a great performance by a query string. It is way better than graphics
be generated on browser client side.

Please let me know what if we move to GeoServer, how can we achieve such
function to use GeoServer? Thanks in advance!

Best,

Tom
___
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] Parameterized data_dir

2018-11-02 Thread Víctor González
Hi all,

I was trying to use the technique explained here:

https://docs.geoserver.org/latest/en/user/community/backuprestore/configtemplate.html


but I cannot make it work. I set the host of a PG datastore to ${mypghost},
wrote a /geoserver-environment.properties with mypghost=localhost
and then restarted with -DALLOW_ENV_PARAMETRIZATION=true but it doesn't
connect (it does when setting "localhost" directly).

Then I tried to remove the geoserver-environment.properties file and set
the logging level to verbose but I don't see this message in the logs
anywhere:

https://github.com/geoserver/geoserver/blob/master/src/platform/src/main/java/org/geoserver/platform/GeoServerEnvironment.java#L104
https://github.com/geoserver/geoserver/blob/master/src/platform/src/main/java/org/geoserver/platform/GeoServerEnvironment.java#L120

It seems like the bean is never initialized. Do I need to configure
something else to enable this feature?

Thanks in advance.

-- 
Víctor González
http://geomati.co
___
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