[Geoserver-users] REST API, User endpoints

2017-10-18 Thread Anton Lundkvist
Hi,

I'm experiencing problems with the REST endpoints in GeoServer 2.12.0

- The docs says the url for the usergroup api should be
/rest/usergroup/users, however I only got the request to work at
/rest/security/usergroup/users. I guess this is a miss in the docs?

- I can only perform requests using content-type and accept headers of
application/xml. When trying application/json i get an 406 Not acceptable
error.

- According to the docs it should be possible to perform POST requests to
the above endpoint (for creating a user) but I get a 500 error. From the
logs: (18 Oct 20:52:19 ERROR [geoserver.rest] - user
geoserver| com.thoughtworks.xstream.mapper.CannotResolveClassException:
user)

Anyone else experiencing this problem?

/

Anton Lundkvist
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
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

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


Re: [Geoserver-users] How many layers/resources per store?

2016-11-01 Thread Anton Lundkvist
Thanks for the info!

I finally had the time to implement the Jindi connection pooling. It seems
to work well.

I configured according to the geoserver docs.
http://docs.geoserver.org/stable/en/user/tutorials/tomcat-jndi/tomcat-jndi.html

Do you have any info on what the different configuration settings in the
context.xml stand for or if there are any additional setting I should set
to maximize performance? I use tomcat 8 and checked the docs there but did
not find much.

For example I would like to know what the

maxActive="20"
maxIdle="8"

In the context.xml does. Does the connection pool allow adding unlimited
amount of feature types to that store or are there still limits to what it
can handle?

My database is configured to accept unlimited amounts of connections

Thanks again for the help!

Anton

Den 29 sep. 2016 8:27 AM skrev "Peter Kovac" :

> Hi Anton,
>
> Please, keep the conversation on the mailing list so others can help you
> or benefit from our conversation.
>
> I don't use gsconfig, so I'm not able to help you with it. However, once
> you set up your PostGIS JNDI datastore, it's just another datastore and I
> wildly guess that gsconfig will work happily with it.
>
> In my opinion setting up JNDI manually is just a small effort for a very
> high reward.
>
>
> Cheers,
>
> Peter
>
>
> On 28. 9. 2016 10:40, Anton Lundkvist wrote:
>
> Ok thanks!
>
> I'm relying heavily on gsconfig.py https://github.com/
> boundlessgeo/gsconfig for publishing my tables. I haven't found any info
> on if it is possible to use JNDI with gsconfig. Does anyone know?
>
> regards,
>
> anton
>
> 2016-09-28 9:15 GMT+02:00 Peter Kovac :
>
>> Hi Anton,
>>
>> If you are using Apache Tomcat or another container I recommend using
>> JNDI connection pooling. That way you have 1 connection pool shared among
>> all of your layers and you can manage it easily. I observed significant
>> performance gains when switching from "PostGIS" to "PostGIS (JNDI)" type of
>> store (database connections don't have to be recreated with each request
>> and it saves a lot of time). It works with ImageMosaic datastores with
>> custom dimensions too.
>>
>> http://docs.geoserver.org/stable/en/user/tutorials/tomcat-
>> jndi/tomcat-jndi.html
>>
>> Cheers,
>>
>> Peter
>>
>>
>> On 28. 9. 2016 8:57, Anton Lundkvist wrote:
>>
>> Hi GeoServer Users:
>>
>> I'm using GeoServer for serving vector data (from PostGis). Keeping the
>> number of stores down e.g. many layers per store reduces the number of
>> connections to PostGis. This is desirable as I have hundreds of tables that
>> are published through GeoServer.
>>
>>  Is there a recommended limit for how many layers / resources I should
>> handle with one store?
>>
>> Regards,
>>
>> Anton Lundkvist
>>
>>
>>
>>
>> ------
>>
>> ___
>> Geoserver-users mailing 
>> listGeoserver-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>> --
>> Peter Kovac
>> IMS Programmer
>> microstep-mispeter.ko...@microstep-mis.com
>>
>> --
> ---
> Anton Lundkvist
> Malmö
> Tel:0046 768 847 703
>
> --
> Peter Kovac
> IMS Programmer
> microstep-mispeter.ko...@microstep-mis.com
>
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] How many layers/resources per store?

2016-09-27 Thread Anton Lundkvist
Hi GeoServer Users:

I'm using GeoServer for serving vector data (from PostGis). Keeping the
number of stores down e.g. many layers per store reduces the number of
connections to PostGis. This is desirable as I have hundreds of tables that
are published through GeoServer.

 Is there a recommended limit for how many layers / resources I should
handle with one store?

Regards,

Anton Lundkvist
--
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Geofence questions

2016-06-21 Thread Anton Lundkvist
Hi!
Using tomcat7, geoserver 2.8 with community Geofence embedded server.

I'm struggling a bit with the Geofence REST API, see docs at
http://docs.geoserver.org/2.8.x/en/user/community/geofence-server/rest-userrole.html#rest-usergroup-service-servicename-users

I'm able to make successful requests (GET, POST) to read users list and
create a user at the following endpoint:

*rest/usergroup/users/*

However to read, alter and delete information on a specific user, I should
be able to make (GET,POST, DELETE) requests to the following endpoint:

*rest/usergroup/*

My question is what does  denote in the above URI?
I have tried the following URI constructions:

*rest/usergroup/*, userName beeing the user name of the user I
want to read or
*rest/usergroup/*

Neither works. Basic auth in requests are working since the first endpoint
described above works. The error message from tomcat gives me method not
allowed and the allowed header gives me only POST and DELETE which is not
consistent with the docs.

Anybody using the Geofence plugin and ran into the same issue?

regards,
Anton
--
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] WCS statistics

2016-05-08 Thread Anton Lundkvist
Thanks for the clarifications and the wps you mentioned. I'll have a look
at it.

All the best,

Anton
Den 4 maj 2016 21:23 skrev "Simone Giannecchini" <
simone.giannecch...@geo-solutions.it>:

> Ciao Cesar,
> the WPS processes to look at are the RasterZonalStatistics ones in
> GeoTools, here you have one:
>
>
> https://github.com/geotools/geotools/blob/master/modules/unsupported/process-raster/src/main/java/org/geotools/process/raster/RasterZonalStatistics2.java
>
> Many of the params have default.
>
> @Anton this would need to be wrapped as a GeoServer process (becoming
> aware of the concept of layer and so on) to run in GeoServer.
> Admittely not extremely simple for the uninitated but not even a
> tremendous amount of work.
>
> Regards,
> Simone Giannecchini
> ==
> GeoServer Professional Services from the experts!
> Visit http://goo.gl/it488V for more information.
> ==
> Ing. Simone Giannecchini
> @simogeo
> Founder/Director
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob:   +39 333 8128928
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> ---
> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate.
> Il loro utilizzo è consentito esclusivamente al destinatario del
> messaggio, per le finalità indicate nel messaggio stesso. Qualora
> riceviate questo messaggio senza esserne il destinatario, Vi preghiamo
> cortesemente di darcene notizia via e-mail e di procedere alla
> distruzione del messaggio stesso, cancellandolo dal Vostro sistema.
> Conservare il messaggio stesso, divulgarlo anche in parte,
> distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità
> diverse, costituisce comportamento contrario ai principi dettati dal
> D.Lgs. 196/2003.
>
> The information in this message and/or attachments, is intended solely
> for the attention and use of the named addressee(s) and may be
> confidential or proprietary in nature or covered by the provisions of
> privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New
> Data Protection Code).Any use not in accord with its purpose, any
> disclosure, reproduction, copying, distribution, or either
> dissemination, either whole or partial, is strictly forbidden except
> previous formal approval of the named addressee(s). If you are not the
> intended recipient, please contact immediately the sender by
> telephone, fax or e-mail and delete the information in this message
> that has been received in error. The sender does not give any warranty
> or accept liability as the content, accuracy or completeness of sent
> messages and accepts no responsibility  for changes made after they
> were sent or for other risks which arise as a result of e-mail
> transmission, viruses, etc.
>
>
> On Wed, May 4, 2016 at 10:43 AM, César Martínez Izquierdo
>  wrote:
> > Hi Anton,
> >
> > Max and min values are not currently calculated. We made a proposal for
> an
> > implementation of this feature:
> > https://github.com/geoserver/geoserver/wiki/GSIP-140
> >
> > but we are not implementing it on the short term.
> >
> > Simone Giannecchini mentioned some WPS existing process to get max and
> min
> > values. I have found the following processes, but I am not sure what they
> > are calculating exactly:
> >
> >
> https://github.com/geoserver/geoserver/blob/master/src/extension/wps/wps-core/src/main/java/org/geoserver/wps/gs/ClassificationStatsPPIO.java
> >
> https://github.com/geotools/geotools/blob/master/modules/unsupported/process-raster/src/main/java/org/geotools/process/raster/CoverageClassStats.java
> >
> > Cheers,
> >
> > César
> >
> >
> >
> > On 4 May 2016 at 10:07, Andrea Aime 
> wrote:
> >>
> >> Hi Anton,
> >> you did not miss anything.
> >> There was a discussion on the topic in the last few months in
> >> geoserver-devel,
> >> but I don't think it moved past the talking stage, have a look at the
> list
> >> archives
> >>
> >> Cheers
> >> Andrea
> >>
> >>
> >> On Wed, May 4, 2016 at 9:40 AM, Anton Lundkvist <
> antonlundkv...@gmail.com>
> >> wrote:
> >>>
> >>> Hi,
> >>>
> >>> I want to get the statistics (min, max, mean, and stdv) of a raster in
> >>> GeoServer.
> 

Re: [Geoserver-users] WCS statistics

2016-05-04 Thread Anton Lundkvist
Thanks Cesar an Andrea! I'll check the wps processes you sent me. I did
implement my own wps which works so in last case I'll use that one.

It seems that wcs functionality is not really prioritised in geoserver
right now. Maybe it is not requested by that many users either?

Thanks for a great community!

Anton
Den 4 maj 2016 10:43 skrev "César Martínez Izquierdo" :

> Hi Anton,
>
> Max and min values are not currently calculated. We made a proposal for an
> implementation of this feature:
> https://github.com/geoserver/geoserver/wiki/GSIP-140
>
> but we are not implementing it on the short term.
>
> Simone Giannecchini mentioned some WPS existing process to get max and min
> values. I have found the following processes, but I am not sure what they
> are calculating exactly:
>
>
> https://github.com/geoserver/geoserver/blob/master/src/extension/wps/wps-core/src/main/java/org/geoserver/wps/gs/ClassificationStatsPPIO.java
>
> https://github.com/geotools/geotools/blob/master/modules/unsupported/process-raster/src/main/java/org/geotools/process/raster/CoverageClassStats.java
>
> Cheers,
>
> César
>
>
>
> On 4 May 2016 at 10:07, Andrea Aime  wrote:
>
>> Hi Anton,
>> you did not miss anything.
>> There was a discussion on the topic in the last few months in
>> geoserver-devel,
>> but I don't think it moved past the talking stage, have a look at the
>> list archives
>>
>> Cheers
>> Andrea
>>
>>
>> On Wed, May 4, 2016 at 9:40 AM, Anton Lundkvist > > wrote:
>>
>>> Hi,
>>>
>>> I want to get the statistics (min, max, mean, and stdv) of a raster in
>>> GeoServer.
>>>
>>> I have looked at WPS and REST but no luck. The WPS does not seem to have
>>> this process implemented. The REST API should be able to give me this
>>> answer at the following endpoint:
>>>
>>> http://localhost:8080/geoserver/rest/workspaces/
>>> /coveragestores//coverages/.xml
>>>
>>> When looking at the xml at the above URL it seems that the max and min
>>> values are not calculated but shows some kind of default values (see range
>>> tag below):
>>>
>>> 
>>>
>>>   GRAY_INDEX
>>>   GridSampleDimension[-32768.0,-32768.0]
>>>
>>>   -32768.0
>>>-32768.0
>>> 
>>>  
>>>  -32768.0
>>>   
>>>   
>>>SIGNED_16BITS
>>>
>>> 
>>> 
>>>
>>> I've also noticed that if I manually put in the min and max value for
>>> the geotiff when publishing it in GeoServer, those values show up at the
>>> REST endpoint above.
>>>
>>> Shouldn't GeoServer calculate this automatically when uploading the
>>> raster?
>>>
>>> Have I missed something, is there any other way of getting raster
>>> statistics in GeoServer?
>>>
>>> Regards,
>>>
>>> Anton
>>>
>>>
>>>
>>>
>>> --
>>> Find and fix application performance issues faster with Applications
>>> Manager
>>> Applications Manager provides deep performance insights into multiple
>>> tiers of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial!
>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>>> ___
>>> Geoserver-users mailing list
>>> Geoserver-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>
>>>
>>
>>
>> --
>> ==
>> 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
>>
>> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>>
>> Le informazioni contenute in questo messaggio di posta elettronica e/o
>> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
>> loro utilizzo è consentito esclusivamente al destinatario del messaggio

[Geoserver-users] WCS statistics

2016-05-04 Thread Anton Lundkvist
Hi,

I want to get the statistics (min, max, mean, and stdv) of a raster in
GeoServer.

I have looked at WPS and REST but no luck. The WPS does not seem to have
this process implemented. The REST API should be able to give me this
answer at the following endpoint:

http://localhost:8080/geoserver/rest/workspaces/
/coveragestores//coverages/.xml

When looking at the xml at the above URL it seems that the max and min
values are not calculated but shows some kind of default values (see range
tag below):


   
  GRAY_INDEX
  GridSampleDimension[-32768.0,-32768.0]
   
  -32768.0
   -32768.0

 
 -32768.0
  
  
   SIGNED_16BITS
   



I've also noticed that if I manually put in the min and max value for the
geotiff when publishing it in GeoServer, those values show up at the REST
endpoint above.

Shouldn't GeoServer calculate this automatically when uploading the raster?

Have I missed something, is there any other way of getting raster
statistics in GeoServer?

Regards,

Anton
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users