Re: [Geoserver-users] Using tablesample in sld

2018-05-27 Thread Matteo Cusmai
Ciao Andrea,
Thanks for the quick answer.

Yes, I known that I can't use sql view parameter from sld, and however, I
don't like use it for security reason.

So I was thinking about a wps, but I have to check if it is possible.

But the best solution, I think is to implement your second idea, with
filter function. Where I can see some code example?

On 27 May 2018 09:04, "Andrea Aime" <andrea.a...@geo-solutions.it> wrote:

Hi Matteo,
I don't think there is a way to do what you want from the SLD, and using
that function.

In order to run that SQL, you have to setup a SQL View.
So that "10" could be a parameter in the parametric sql view.
But SLD cannot specificy those view parameters, only the client in the
GetMap can.

I'm also not sure how well the optimizer would interact with the actual
query running the sql view,
e.g.:

select columns from () where 

I can propose some alternatives.

The first one, add a new column to your table, as an integer, with values
from one to 10
(see also
https://stackoverflow.com/questions/1400505/generate-a-random-number-in-the-range-1-10
)
Then in the SLD, based on the scale, choose which subset of those random
numbers you want to show
using a simple filter (e.g., myRandomNumber < 5)... you might want to index
that column too.
This approach works fully from SLD, and is also fully repeatable
(tablesample can be too, there is an
extra param you have to pass).

The second one, write code for a "tablesample" filter function, that would
do the work in memory
for any type of data source and would allow to express the concept in SLD
via:




 10
Repeatable
   
   


and then have the PostGIS data store recognize it, and rewrite the query to
use tablesample
(easier said than done, but I guess feasible).

There are other possible code change based avenues too, like modifying the
way sql views work and
allow setting viewparams from SLD, adding a vendor option somewhere i the
SLD to specify the sampling
(e.g., at the FeatureTypeStyle level), and likely others I did not think
about.

For these approaches see also:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Cheers
Andrea


On Sat, May 26, 2018 at 6:09 PM, Matteo Cusmai <cusmaimat...@gmail.com>
wrote:

> Hi all,
> I have very big layer based on tables with about 10 millions of records. I
> am trying to define a great sld to limit the number of record to be queried
> at low zoom level, but there isn't a field with a good enough meaning.
>
> I have found a great postgresql feature that was introduced in version
> 9.5, it is tablesample that give us the ability to retrieve a percentage of
> records in tables.
>
> I would like to use this capabilities to show, for example, the 1% at low
> zoom level, 10% at medium and 100% at high zoom level.
>
> SELECT * FROM big_table TABLESAMPLE SYSTEM(10);
>
> I am going mad to figure out how I can use sld with zoom level to set the
> percentage.
>
> Anyone could help me?
>
>
> Matteo Cusmai
>
>
> --
> 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
>
> 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 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, og

[Geoserver-users] Using tablesample in sld

2018-05-26 Thread Matteo Cusmai
Hi all,
I have very big layer based on tables with about 10 millions of records. I
am trying to define a great sld to limit the number of record to be queried
at low zoom level, but there isn't a field with a good enough meaning.

I have found a great postgresql feature that was introduced in version 9.5,
it is tablesample that give us the ability to retrieve a percentage of
records in tables.

I would like to use this capabilities to show, for example, the 1% at low
zoom level, 10% at medium and 100% at high zoom level.

SELECT * FROM big_table TABLESAMPLE SYSTEM(10);

I am going mad to figure out how I can use sld with zoom level to set the
percentage.

Anyone could help me?


Matteo Cusmai
--
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

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] mongodb layer

2018-01-23 Thread Matteo Cusmai
Hi Cintia,
you are right, this is the drawback of this solution.

On 23 Jan 2018 12:24, "Cintia Pereira"  wrote:

> Hi, I have a last doubt, my table has so many times, when I request a
> getCapabilities I get a timeout I think that´s because the geoserver try to
> calculate de min/max time, how can I solve this?
>
> 2018-01-22 13:05 GMT-02:00 Cintia Pereira :
>
>> Perfect! It's exactly what I need.
>> Thanks.
>>
>> 2018-01-22 7:43 GMT-02:00 Nuno Oliveira :
>>
>>> On 01/22/2018 09:39 AM, Andrea Aime wrote:
>>>
>>> On Mon, Jan 22, 2018 at 10:22 AM, Nuno Oliveira <
>>> nuno.olive...@geo-solutions.it> wrote:
>>>
 The only thing I can think of is a CQL filter that applies the desired
 buffer. CQL filter can be defined per layer:
 http://docs.geoserver.org/latest/en/user/data/webadmin/layer
 s.html#restricting-features-showing-up-in-the-layer

>>>
>>> CQL filter... filters, does not define new fields or change existing
>>> ones :-)
>>>
>>> Good point :)
>>>
>>>
>>> Wondering, are buffers just visual? If so, one can do them in SLD
>>> instead (e.g. a circle symbol size can be defined
>>> in meters)
>>>
>>> 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 <+39%200584%20962313> fax: +39 0584 1660272
>>> <+39%200584%20166%200272> mob: +39  339 8844549 <+39%20339%20884%204549>
>>> 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.
>>>
>>>
>>> --
>>> 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 <+39%200584%20962313>
>>> fax:  +39 0584 1660272 <+39%200584%20166%200272>
>>> http://www.geo-solutions.ithttp://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 

Re: [Geoserver-users] mongodb layer

2018-01-17 Thread Matteo Cusmai
Hi,
If you are interested in showing temporal series of your polygons, you
could use time dimension, and setting the default value as biggest you will
have the desired result.

On 17 Jan 2018 17:44, "Nuno Oliveira" 
wrote:

> It looks like there is some misunderstanding here, maybe I misunderstood
> your problem:
>
>- app-schema doesn't give you any support for MongoDB, it allows you
>to use complex features with GeoServer or to comply with a specific XML
>target schema
>
>
>- if you want to produce complex features where the data is stored in
>a MongoDB collection, then you will need App-Schema and MongoDB data stores
>... both of them
>
> So if you don't need complex features and only need simple features, like
> when using PostGIS data store, forget about App-Schema.
> If you have your data in a MongoDB data store and you need to publish it
> you will need gt-mongodb GeoTools data store,which unfortunately is not
> available as a GeoServer
> ZIP plugin ... which means that you need to build or download the
> corresponding JAR and add it to your GeoServer installation, pre-build
> binaries are available here:
>
> https://repo.boundlessgeo.com/main/org/geotools/gt-mongodb/
>
> For example if you are using GeoServer 2.12.1 you will need this JAR:
> https://repo.boundlessgeo.com/main/org/geotools/gt-mongodb/
> 18.1/gt-mongodb-18.1.jar
>
> On 01/17/2018 04:17 PM, Cintia Pereira wrote:
>
> Thanks Nuno, I will try to use the app-schema then. I thought that there
> was plugin to mongodb similar to the postgis...
>
> 2018-01-17 8:29 GMT-02:00 Nuno Oliveira :
>
>> I was chatting with Andrea Aime when he pointed out (thanks!) that there
>> is no way to know what is the
>> current time in a CQL filter ... which means that there is no way to
>> filter polygons that have been inserted
>> only in the last five minutes.
>>
>> So I see two options here:
>>
>> 1. you need a collection that will only have the relevant polygons, e.g.
>> some collection that will be updated
>> by an external service adding recent (last 5 minutes) polygons and
>> removing deprecated ones
>>
>> 2. extend GeoServer CQL filtering support to be able to filter based on
>> the current time
>>
>> Hope it helps.
>>
>>
>> On 01/17/2018 10:05 AM, Nuno Oliveira wrote:
>>
>> Hi,
>>
>> You only App-Schema if you are dealing with complex features or if you
>> need to comply with a specific XML schema,
>> otherwise you only need the mongodb data store, i.e. you only need simple
>> features support.
>>
>> When publishing a MongoDB collection in GeoServer as a layer, by default
>> GeoServer will consider all the data available
>> in the collection. In you case you may want to use a CQL filter [1] to
>> restrict GeoServer to only take into account
>> the polygons that have been inserted in the last 5 minutes.
>>
>> Kind regards,
>>
>> Nuno Oliveira
>>
>> [1] http://docs.geoserver.org/latest/en/user/data/webadmin/layer
>> s.html#restricting-features-showing-up-in-the-layer
>>
>> On 01/17/2018 12:28 AM, Cintia Pereira wrote:
>>
>> Hi all,
>> I have a database in mongodb with polygons, each polygon has a date and
>> new polygons are inserted every five minutes.
>> Now, I'd like to create a layer with the polygons inserted on last five
>> minutes, how can I do this? Should I use app-schema or gt-mongodb plugin?
>>
>>
>> --
>> 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
>>
>> 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.nethttps://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 <+39%200584%20962313>
>> fax:  +39 0584 1660272 <+39%200584%20166%200272>
>> http://www.geo-solutions.ithttp://twitter.com/geosolutions_it
>>
>> ---
>> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
>> Le informazioni contenute in questo messaggio di posta elettronica 

Re: [Geoserver-users] Standalone Geowebcache and Geoserver

2017-11-07 Thread Matteo Cusmai
Hi Steve,
With jms cluster you don't need jdbc config, because every catalog updates
are performed on all nodes.

The problem is gwc configurations, it seems that jms cluster doesn't take
into account them. I have opened a thread on this issue, but up to now I
haven't received any answers.

On 8 Nov 2017 07:40, "Steve Omondi"  wrote:

> Hi Andrea,
>
>  Are you talking about serving cached tiles or tiles that need to be built
> on the fly?
>
> ​Both. I pre-seed some area to a certain zoom level, but I'm also leaving
> most of the seeding to be done by users on the fly.​
>
>
> Yes, this is well known, see this proposal I made at the beginning of
> 2017, it contains some performance numbers too:
> https://github.com/geoserver/geoserver/wiki/GSIP-155
> I cannot tell you how much of those 80ms are weighting on WMTS calls
> hitting already cached tiles on the embedded GWC, but I'm confident part of
> it will be there.
>
> ​I didn't quite look at it this way. But actually the JDBCConfig is a big
> difference between my clustered environment and the Single Geoserver. I
> could be going after GWC but the quesries are most likely the issue.
> However, this si a sacrifice I have to make to share the catalog between
> different machines.​
>
>
> Kind regards,
> Steve Omondi
>
> On Tue, Nov 7, 2017 at 9:07 PM, Andrea Aime 
> wrote:
>
>> On Tue, Nov 7, 2017 at 3:05 PM, Steve Omondi 
>> wrote:
>>
>>> ​I have 6 Geoservers + Embedded GWC spread on two VMs 3 each. Each
>>> running on separate Tomcat. All the Six Geoserver are running behind Apache
>>> HTTPD proxy Balancer. I tried tuning the Java Process setting to optimum.
>>>
>>> On the other hand I had a single Geoserver+ Embedded GWC.
>>>
>>> On performing tests, The 6 Geoserver are 4-6 time slower than the Single
>>> Geoserver while rendering a layergroup of HR Aerial Imagery on Openlayers
>>> client.
>>>
>>> I made a list of the configuration differences between the clustered
>>> Geoservers and the Single Geoserver and some of the items are;
>>>
>>>- I use Authkey for Authentication in the Clustered Geoservers with
>>>a JDBC Role Service - so maybe every tile request has to perform
>>>authorization by querying the database and all those processes may slow 
>>> the
>>>request.
>>>
>>>
>> This certainly adds work, queries to databases are expensive (how much
>> so, depends a lot on your configuration, network, indexes and the like)
>>
>>>
>>>- JDBCConfig is used in the clustered  Geoserver as opposed to XML
>>>Catalog in the Single Geoserver; same as above the query process could be
>>>slowing requests.
>>>
>>> Yes, this is well known, see this proposal I made at the beginning of
>> 2017, it contains some performance numbers too:
>> https://github.com/geoserver/geoserver/wiki/GSIP-155
>> I cannot tell you how much of those 80ms are weighting on WMTS calls
>> hitting already cached tiles on the embedded GWC, but I'm confident part of
>> it will be there.
>>
>>
>>>
>>>- The fact that *GWC Directory and Diskquota are clustered could be
>>>an issues*; write/access speed of the remote GWC directory seems to
>>>me as a cause of slow rendering of tiles and as so it tops my list of
>>>culprits.
>>>
>>> That depends a lot on the network file system in use.
>>
>>
>>> ​The third point is the source of my motivation to run GWC as standalone
>>> in front of the Geoserver Cluster proxy. The have the GWC Blobstore closer
>>> instead of a network drive.
>>>
>>>   Can you elaborate what you mean by "as efficient
>>> and fast"?
>>>
>>> My experience with the Integrated GWC (Six Instances of them which do
>>> not share workload) is definitely slower as I've mentioned 4 -6 times
>>> slower that a single GWC.
>>>
>>
>> Are you talking about serving cached tiles or tiles that need to be built
>> on the fly?
>>
>>
>>>
>>> In fact I have stopped one VM and move the Tiles (GWC dir) to a local
>>> directory in the same machine as the Geoservers but still slower than one
>>> Geoserver.
>>>
>>
>> Yeah, the two common topologies are:
>>
>>- Shared network storage, mostly read only, pre-seeded on some other,
>>non online machine
>>- One tile storage per network node, non shared, especially useful
>>for data changes a lot
>>
>> I'd love to see a local storage option that allows picking tiles from
>> other nodes via some clustering technology (e.g., hazelcast distribution),
>> merging the benefits of the two world but... it's missing funding to be
>> developed
>>
>> 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
>> 

Re: [Geoserver-users] MapProjection doesn't converge

2017-11-06 Thread Matteo Cusmai
Hi Andrea,
sorry for delay, I was in holiday.

If I take the area of use from the site you mentioned (6 38.76, 12 83.92) I
can calculate a bbox as follow:

select st_astext(st_envelope(st_geometryfromtext('LINESTRING(6 38.76, 12
83.92  )', 4326))) and the result is:
POLYGON((6 38.76,6 83.92,12 83.92,12 38.76,6 38.76)).

Now, If I repeat the query on my data with this extent, there are a lot of
data out of it:
select count(*) from database.table_point where not
ST_Contains(st_geometryfromtext('POLYGON((6 38.76,6 83.92,12 83.92,12
38.76,6 38.76))', 4326), st_transform(geom, 4326)) --> 3660763

on the other hand, there are 1447847 inside it.

But, there another strange thing, the bbox of srs from geoserver:
(239323.44497139292 4290144.074117256, 760676.555028607 9320086.206909368)

is different from area of use from the site:

select st_astext(st_transform(st_geometryfromtext('POINT(6 38.76)', 4326),
25832)) --> POINT(239323.444971393 4294418.79680585)
select st_astext(st_transform(st_geometryfromtext('POINT(12 83.92)', 4326),
25832)) --> POINT(535459.483902448 9320086.20690937)


If I use the area of use from geoserver I receive the following results:

select st_astext(st_transform(st_geometryfromtext('POINT(239323.44497139292
4290144.074117256)', 25832), 4326))--> POINT(6.00161054618446
38.7215301292457)
select st_astext(st_transform(st_geometryfromtext('POINT(760676.555028607
9320086.206909368)', 25832), 4326))--> POINT(30.0743594610395
83.4965847858297)

and the extent will be POLYGON((6 38.72,6 83.5,30.07 83.5,30.07 38.72,6
38.72))

and the results wiil be:
select count(*) from database.table_point where not
ST_Contains(st_geometryfromtext('POLYGON((6 38.72,6 83.5,30.07 83.5,30.07
38.72,6 38.72))', 4326), st_transform(geom, 4326)) --> 716855

Finally, I am very confused. Where I am wronging?

Thanks a lot,
Matteo.


Matteo Cusmai

On Tue, Oct 31, 2017 at 11:24 AM, Andrea Aime <andrea.a...@geo-solutions.it>
wrote:

> On Tue, Oct 31, 2017 at 10:17 AM, Matteo Cusmai <cusmaimat...@gmail.com>
> wrote:
>
>> Hi all,
>> I am trying to check my data against epsg 25832.
>> Following the steps:
>>
>>1. get bounds of epsg:25832 in lon, lat (https://epsg.io/25832) -->
>>(-16.1 32.88) (39.65 84.17)
>>
>> I'm quite surprised to see such an extension... its limit is 25 degrees
> west of the central meridian and
> a whopping 55 degrees large, while a UTM is supposed to be only 6 degrees
> large, 3 degrees on
> each side.
>
> This seems to be a bug in epsg.io though, if I check an official
> reference like https://www.epsg-registry.org/
> the "area of use" is reported to be what I expected it to be (too bad the
> blasted web site does not allow
> for a direct link, but see this screenshot:
>
> [image: Inline image 1]
>
> That said, the UTM math should be somewhat stable even so far away from
> the central meridian.
> I would like to see some sample data that can be used to reproduce the
> issue (in a ticket).
>
> Cheers
> Andrea
>
> --
>
> Regards,
>
> Andrea Aime
>
> ==
> 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
> <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa=gmail=g>
> 55054  Massarosa
> <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa=gmail=g>
> (LU)
> phone: +39 0584 962313 <0584%20962313>
> fax: +39 0584 1660272 <0584%20166%200272>
> mob: +39  339 8844549 <339%20884%204549>
>
> 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

Re: [Geoserver-users] Cluster Geoserver and Integrated GeoWebcache

2017-11-03 Thread Matteo Cusmai
Hi all,
Does Anyone have a similar environment?



On 25 Oct 2017 19:53, "Matteo Cusmai" <cusmaimat...@gmail.com> wrote:

> Hi all,
> I'm trying to use the integrated geowebcache in a clustered environment,
> as documented in http://geoserver.geo-solutions.it/edu/en/caching_
> data/clustering.html.
>
> My environment is based on 2 geoserver nodes in active-active mode with
> JMS queue and shared data dir. I notice that if I create and seeding a
> layer on the first node, if the client accesses the second node it doesn't
> use the cached tiles.
>
> Furthermore, it seems that the cluster isn't synchronized because the
> sequence update are different.
>
> The environment is described below:
> - geoserver version: 2.11.0
> - geowebcache version: 1.11.0
> - OS: ubuntu 16
> - I am using virtual service and direct integration with geoserver WMS
>
> There is someone with similar environment? Could you help me?
>
> Matteo Cusmai
>
--
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] MapProjection doesn't converge

2017-10-31 Thread Matteo Cusmai
Hi all,
I am trying to check my data against epsg 25832.
Following the steps:

   1. get bounds of epsg:25832 in lon, lat (https://epsg.io/25832) -->
   (-16.1 32.88) (39.65 84.17)
   2. calculate bbox: select
   st_astext(st_envelope(st_geometryfromtext('LINESTRING(-16.1 32.88, 39.65
   84.17 )', 4326))) --> POLYGON((-16.1 32.88,-16.1 84.17,39.65 84.17,39.65
   32.88,-16.1 32.88))
   3. count point outside: select count(*) from table_lines where not
   ST_Intersects(st_transform(geom, 4326), st_geometryfromtext('POLYGON((-16.1
   32.88,-16.1 84.17,39.65 84.17,39.65 32.88,-16.1 32.88))', 4326)) --> 0

I have executed the check also using epsg:3857:

select count(*) from sinfidb_history.infr_rt_estensione_p where not
ST_Contains(st_transform(st_geometryfromtext('POLYGON((-16.1 32.88,-16.1
84.17,39.65 84.17,39.65 32.88,-16.1 32.88))', 4326), 3857),
st_transform(geom, 3857))

with same result.


So, do you think there is a better way to make this check?



Matteo Cusmai

On Sat, Oct 28, 2017 at 9:26 PM, Andrea Aime <andrea.a...@geo-solutions.it>
wrote:

>
>
> Il 28 ott 2017 8:14 PM, "Matteo Cusmai" <cusmaimat...@gmail.com> ha
> scritto:
>
> So, the most probable cause of this error is the presence of data on the
> boundary of the epsg, isn't it?
>
>
> At the border... Not really, I'd say really outside. But we are going in
> circles here... Can you use another tool to just query the data?
>
> Also, which version of GeoServer are you using?
>
> Cheers
> Andrea
>
--
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] REST-API: Layers doesn't have a workspace

2017-10-31 Thread Matteo Cusmai
Hi,
I had the same problem, but the cause was the naming convention of
workspace.

Now we are using geoserver manager lib and we are able to manage layers
with same name in different workspace.

On 30 Oct 2017 11:30, "Andrea Aime"  wrote:

> 2017-10-30 10:45 GMT+01:00 Gubler, Ruediger :
>
>> Hi,
>>
>>
>>
>> We want to setup GeoServer using the REST-API.
>>
>> Unfortunately the /layers doesn’t have a /workspaces//layers….
>> access.
>>
>>
>>
>> How can we handle multiple, same name layers, for different customers
>> (workspaces) using the REST api?
>>
>
> Simple, you cannot in the current setup, seet this ticket and associated
> ones:
> https://osgeo-org.atlassian.net/browse/GEOS-7682
>
> The tricky part here is that changing the current output would break
> backwards compatibility, so
> some extra effort is involved, maybe a breaking change, maybe a new
> endpoind for qualified layers...
> that requires discussion and possibly a formal proposal... which likely
> puts this ticket out of "spare time fixing" reach,
> and more into the "commercial support" realm.
>
> 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 <0584%20962313>
> fax: +39 0584 1660272 <0584%20166%200272>
> mob: +39  339 8844549 <339%20884%204549>
>
> 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.
>
>
> 
> --
> 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
>
>
--
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] MapProjection doesn't converge

2017-10-28 Thread Matteo Cusmai
So, the most probable cause of this error is the presence of data on the
boundary of the epsg, isn't it?

Could you suggest me a way to check this?



On 28 Oct 2017 17:09, "Andrea Aime"  wrote:

On Sat, Oct 28, 2017 at 4:51 PM, Kristian Thy  wrote:

> > >28 Oct 13:25:15 ERROR [geotools.rendering] - Transformation doesn't
> > >convergence.
>
> "doesn't convergence"?  ¯\_(ツ)_/¯
>

He he, yeah, it's actually a correct error message, the code in question
performs a
calculation implemented as an iterative approximation, which is supposed to
"converge" to the result given a desired tolerance.

In this case, it did not.

For reference:

https://github.com/geotools/geotools/blob/28feaea1f83ea729c3ed02b894d6ad
ecb8641c98/modules/library/referencing/src/main/java/org/
geotools/referencing/operation/projection/MapProjection.java#L1385

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 <0584%20962313>
fax: +39 0584 1660272 <0584%20166%200272>
mob: +39  339 8844549 <339%20884%204549>

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.



--
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
--
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] MapProjection doesn't converge

2017-10-28 Thread Matteo Cusmai
lter(FilterChainProxy.java:330)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(
FilterChainProxy.java:213)
at org.springframework.security.web.FilterChainProxy.doFilter(
FilterChainProxy.java:176)
at org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(
GeoServerSecurityFilterChainProxy.java:152)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(
DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(
DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:87)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.geoserver.filters.SessionDebugFilter.doFilter(
SessionDebugFilter.java:48)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.geoserver.filters.FlushSafeFilter.doFilter(
FlushSafeFilter.java:44)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.springframework.web.filter.CharacterEncodingFilter.
doFilterInternal(CharacterEncodingFilter.java:121)
at org.springframework.web.filter.OncePerRequestFilter.
doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:192)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:165)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:478)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:80)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(
AbstractAccessLogValve.java:624)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:341)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:486)
at org.apache.coyote.AbstractProcessorLight.process(
AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(
AbstractProtocol.java:861)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
doRun(NioEndpoint.java:1455)
at org.apache.tomcat.util.net.SocketProcessorBase.run(
SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(
ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(
ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(
TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

Matteo Cusmai

On Sat, Oct 28, 2017 at 1:13 PM, Ben Caradoc-Davies <b...@transient.nz>
wrote:

> Matteo,
>
> how are you requesting data in EPSG:3857? Please provide the exact
> parameters. The WMS URL and the request information from the GeoServer log
> would be most useful.
>
> Kind regards,
> Ben.
>
>
> On 29/10/17 00:07, Matteo Cusmai wrote:
>
>> Hi Ben, hi Andrea,
>> I am using data from Postgis with epsg 25832 and I am in Italy and I am
>> sure enough that all data into database should be inside this epsg.
>> Do you know if there is a postgis function to check that all my data are
>> inside 25832?
>>
>> All geoserver layer are using keep native SRS handling.
>>
>> The strange thing is that I retrieve the error if I request data in EPSG
>> 3857, but when I access data from openlayer demo page that use 4326 I
>> don't
>> get the error.
>>
>> Do you have some suggestions to check deeper?
>>
>> Thanks a lot,
>> Matteo.
>>
>> Matteo Cusmai
>>
>> On Sat, Oct 28, 2017 at 3:22 AM, Ben Caradoc-Davies <b...@transient.nz>
>> wrote:
>>
&

Re: [Geoserver-users] MapProjection doesn't converge

2017-10-28 Thread Matteo Cusmai
Hi Ben, hi Andrea,
I am using data from Postgis with epsg 25832 and I am in Italy and I am
sure enough that all data into database should be inside this epsg.
Do you know if there is a postgis function to check that all my data are
inside 25832?

All geoserver layer are using keep native SRS handling.

The strange thing is that I retrieve the error if I request data in EPSG
3857, but when I access data from openlayer demo page that use 4326 I don't
get the error.

Do you have some suggestions to check deeper?

Thanks a lot,
Matteo.

Matteo Cusmai

On Sat, Oct 28, 2017 at 3:22 AM, Ben Caradoc-Davies <b...@transient.nz>
wrote:

> And it is easy to end up outside the area of projection validity by using
> the wrong axis order in some part of your request. How did you specify the
> coordinates of your request?
>
> Kind regards,
> Ben.
>
>
> On 28/10/17 03:51, Andrea Aime wrote:
>
>> Ciao Matteo,
>> this error usually happens when a projection is used far away from its
>> area
>> of definition.
>> Which are the source and target projections, and the area in which you're
>> working?
>> Also, did you fiddle with the "advanced projection handling" WMS settings
>> (are they off by any chance)?
>>
>> Cheers
>> Andrea
>>
>>
>> On Fri, Oct 27, 2017 at 4:41 PM, Matteo Cusmai <cusmaimat...@gmail.com>
>> wrote:
>>
>> Hi all,
>>> I have a problem with geoserver, but the error is related to geotools.
>>>
>>> For different layers I receive the following log:
>>>
>>> org.geotools.referencing.operation.projection.ProjectionException:
>>> Transformation doesn't convergence.
>>>  at org.geotools.referencing.operation.projection.
>>> MapProjection.inv_mlfn(MapProjection.java:1399)
>>>  at org.geotools.referencing.operation.projection.TransverseMerc
>>> ator.
>>> inverseTransformNormalized(TransverseMercator.java:217)
>>>  at org.geotools.referencing.operation.projection.
>>> MapProjection$Inverse.transform(MapProjection.java:1050)
>>>  at org.geotools.referencing.operation.projection.
>>> MapProjection$Inverse.transform(MapProjection.java:1105)
>>>  at org.geotools.referencing.operation.transform.ConcatenatedTra
>>> nsform.
>>> transform(ConcatenatedTransform.java:440)
>>>  at org.geotools.referencing.operation.transform.
>>> ConcatenatedTransformDirect.transform(ConcatenatedTransformD
>>> irect.java:80)
>>>  at org.geotools.geometry.jts.Decimator.decimateTransformGeneralize(
>>> Decimator.java:479)
>>>  at org.geotools.geometry.jts.Decimator.decimateTransformGeneralize(
>>> Decimator.java:283)
>>>  at org.geotools.geometry.jts.Decimator.decimateTransformGeneralize(
>>> Decimator.java:241)
>>>  at org.geotools.renderer.lite.StreamingRenderer$RenderableFeature.
>>> getTransformedShape(StreamingRenderer.java:3123)
>>>  at org.geotools.renderer.lite.StreamingRenderer$
>>> RenderableFeature.getShape(StreamingRenderer.java:3066)
>>>  at org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(
>>> StreamingRenderer.java:2549)
>>>  at org.geotools.renderer.lite.StreamingRenderer.processFeature(
>>> StreamingRenderer.java:2449)
>>>  at org.geotools.renderer.lite.StreamingRenderer.drawPlain(
>>> StreamingRenderer.java:2306)
>>>  at org.geotools.renderer.lite.StreamingRenderer.processStylers(
>>> StreamingRenderer.java:1927)
>>>  at org.geotools.renderer.lite.StreamingRenderer.paint(
>>> StreamingRenderer.java:831)
>>>  at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(
>>> RenderedImageMapOutputFormat.java:550)
>>>  at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(
>>> RenderedImageMapOutputFormat.java:273)
>>>  at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(
>>> RenderedImageMapOutputFormat.java:143)
>>>  at org.geoserver.wms.GetMap.executeInternal(GetMap.java:623)
>>>  at org.geoserver.wms.GetMap.run(GetMap.java:279)
>>>  at org.geoserver.wms.GetMap.run(GetMap.java:125)
>>> .
>>>
>>>
>>> It seems related to the MapProjection class and in particular on the
>>> following method:
>>>
>>> protected final double inv_mlfn(double arg) throws ProjectionException {
>>>
>>> Has someone experienced the same issue? Could you help me?
>>>
>>> Thanks a lot,
>>> Matteo.
&

[Geoserver-users] MapProjection doesn't converge

2017-10-27 Thread Matteo Cusmai
Hi all,
I have a problem with geoserver, but the error is related to geotools.

For different layers I receive the following log:

org.geotools.referencing.operation.projection.ProjectionException:
Transformation doesn't convergence.
at
org.geotools.referencing.operation.projection.MapProjection.inv_mlfn(MapProjection.java:1399)
at
org.geotools.referencing.operation.projection.TransverseMercator.inverseTransformNormalized(TransverseMercator.java:217)
at
org.geotools.referencing.operation.projection.MapProjection$Inverse.transform(MapProjection.java:1050)
at
org.geotools.referencing.operation.projection.MapProjection$Inverse.transform(MapProjection.java:1105)
at
org.geotools.referencing.operation.transform.ConcatenatedTransform.transform(ConcatenatedTransform.java:440)
at
org.geotools.referencing.operation.transform.ConcatenatedTransformDirect.transform(ConcatenatedTransformDirect.java:80)
at
org.geotools.geometry.jts.Decimator.decimateTransformGeneralize(Decimator.java:479)
at
org.geotools.geometry.jts.Decimator.decimateTransformGeneralize(Decimator.java:283)
at
org.geotools.geometry.jts.Decimator.decimateTransformGeneralize(Decimator.java:241)
at
org.geotools.renderer.lite.StreamingRenderer$RenderableFeature.getTransformedShape(StreamingRenderer.java:3123)
at
org.geotools.renderer.lite.StreamingRenderer$RenderableFeature.getShape(StreamingRenderer.java:3066)
at
org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:2549)
at
org.geotools.renderer.lite.StreamingRenderer.processFeature(StreamingRenderer.java:2449)
at
org.geotools.renderer.lite.StreamingRenderer.drawPlain(StreamingRenderer.java:2306)
at
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1927)
at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:831)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:550)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:273)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:143)
at org.geoserver.wms.GetMap.executeInternal(GetMap.java:623)
at org.geoserver.wms.GetMap.run(GetMap.java:279)
at org.geoserver.wms.GetMap.run(GetMap.java:125)
.


It seems related to the MapProjection class and in particular on the
following method:

protected final double inv_mlfn(double arg) throws ProjectionException {

Has someone experienced the same issue? Could you help me?

Thanks a lot,
Matteo.




Matteo Cusmai
--
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


[Geoserver-users] Cluster Geoserver and Integrated GeoWebcache

2017-10-25 Thread Matteo Cusmai
Hi all,
I'm trying to use the integrated geowebcache in a clustered environment, as
documented in
http://geoserver.geo-solutions.it/edu/en/caching_data/clustering.html.

My environment is based on 2 geoserver nodes in active-active mode with JMS
queue and shared data dir. I notice that if I create and seeding a layer on
the first node, if the client accesses the second node it doesn't use the
cached tiles.

Furthermore, it seems that the cluster isn't synchronized because the
sequence update are different.

The environment is described below:
- geoserver version: 2.11.0
- geowebcache version: 1.11.0
- OS: ubuntu 16
- I am using virtual service and direct integration with geoserver WMS

There is someone with similar environment? Could you help me?

Matteo Cusmai
--
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


[Geoserver-users] Geowebcache embedded with geofence

2017-08-06 Thread Matteo Cusmai
Hi all,
I am working on an installation with geofence and geowebcache embedded and
when I try to manually seed a layer (by web interface) I receive the
following error:

06 Aug 13:50:21 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException: Could not find layer
sinfi_pubblica:prova_cache
at
org.geoserver.wms.map.GetMapKvpRequestReader.parseLayers(GetMapKvpRequestReader.java:1337)
at
org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:236)
at
org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:85)
at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1521)
at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:680)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:258)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:147)
at org.geoserver.gwc.GWC.dispatchOwsRequest(GWC.java:1272)
at
org.geoserver.gwc.layer.GeoServerTileLayer.dispatchGetMap(GeoServerTileLayer.java:661)
at
org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:605)
at
org.geoserver.gwc.layer.GeoServerTileLayer.seedTile(GeoServerTileLayer.java:800)
at org.geowebcache.seed.SeedTask.doActionInternal(SeedTask.java:136)
at org.geowebcache.seed.GWCTask.doAction(GWCTask.java:76)
at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:36)
at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:25)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
06 Aug 13:50:21 ERROR [seed.MTSeeder] - Problem communicating with GeoServer
org.geowebcache.GeoWebCacheException: Problem communicating with GeoServer
at
org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:611)
at
org.geoserver.gwc.layer.GeoServerTileLayer.seedTile(GeoServerTileLayer.java:800)
at org.geowebcache.seed.SeedTask.doActionInternal(SeedTask.java:136)
at org.geowebcache.seed.GWCTask.doAction(GWCTask.java:76)
at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:36)
at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:25)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: Expected: RenderedImageMap, got
null
at
org.geoserver.gwc.layer.GeoServerTileLayer.dispatchGetMap(GeoServerTileLayer.java:664)
at
org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:605)
... 9 more


I have debugged the code and I have noticed that when geoserver retrieve
the user to understand if it can access the layer, it is null.

Could I have to change something in security configuration?

Thanks in advance.
Matteo.


Matteo Cusmai
--
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


[Geoserver-users] geofence class not found issue

2017-06-12 Thread Matteo Cusmai
)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
at com.sun.proxy.$Proxy16.getAccessInfo(Unknown Source)
at
org.geoserver.geofence.cache.CachedRuleReader$RuleLoader.load(CachedRuleReader.java:121)
at
org.geoserver.geofence.cache.CachedRuleReader$RuleLoader.load(CachedRuleReader.java:113)
at
com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
at
com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
... 131 more
Caused by: java.lang.ClassNotFoundException:
javax.persistence.PersistenceException
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
at
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
at
org.springframework.core.ConfigurableObjectInputStream.resolveClass(ConfigurableObjectInputStream.java:75)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1826)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1713)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2000)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2245)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:552)
at java.lang.Throwable.readObject(Throwable.java:914)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2136)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2027)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2245)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2169)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2027)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2245)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2169)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2027)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1535)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
at
org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.doReadRemoteInvocationResult(AbstractHttpInvokerRequestExecutor.java:292)
at
org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.readRemoteInvocationResult(AbstractHttpInvokerRequestExecutor.java:243)
at
org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.doExecuteRequest(SimpleHttpInvokerRequestExecutor.java:96)
at
org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:138)
at
org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:194)
at
org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:176)
at
org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:144)
... 140 more


Has someone experienced the same or similar issue?

Thanks a lot,

Matteo Cusmai
--
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] geoserver jms plugin

2017-04-07 Thread Matteo Cusmai
$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
at
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
at
org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:53)
at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
at
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilter.java:92)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
at
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
at
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
at
org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoServerSecurityFilterChainProxy.java:152)
at
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at
org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:87)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at
org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:48)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at
org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:44)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
at
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:341)
at
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

There is someone which has experienced this kind of error?


Matteo Cusmai
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___

[Geoserver-users] Geofence dynamic rules

2017-03-30 Thread Matteo Cusmai
Hi all,
I would like to understand if geofence fits my needs.
In my application I have users, roles, and groups, and each user has 2
particular fields: organization-id and area-of-duty.

I need to filter data based on these 2 variables. Is it possible to write
rules that take into account these values, a sort of session variables in
CQL filter and allowed area?

Thanks,
Matteo Cusmai
--
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geofence and Oauth2

2017-03-23 Thread Matteo Cusmai
Hi Emanuele,
Is it possible to install geofence standalone in ha?

Cheers,
Matteo.



Matteo Cusmai

On Tue, Mar 21, 2017 at 2:12 AM, Emanuele Tajariol <e...@geo-solutions.it>
wrote:

> Hi Matteo,
>
> > I wouldn't like to allow geofence to access the ldap of openam,
>
> I was pointing to the LDAP module only to show you a module that implements
> the required interfaces toward a data source for users and groups :)
>
> > so if it
> > possible to use the embedded version in a cluster installation.?
>
> If you need to use a clustered GeoServer, you should use a standalone
> GeoFence; in this way all the GeoServer instances will share the same
> rulesets.
>
> The embedded GeoFence engine uses an internal DB to store the rules, and at
> the moment there isn't a mechanism to keep in synch the various GeoFence
> DBs
> for the different instances in the cluster.
>
>    Cheers,
>Emanuele
>
>
> Alle 23:55:54 di Friday 17 March 2017, Matteo Cusmai ha scritto:
> > Hi Tajarol,
> > thanks a lot for the quick replay.
> >
> > I wouldn't like to allow geofence to access the ldap of openam, so if it
> > possible to use the embedded version in a cluster installation.?
> >
> > Furthermore, I would like to know if Oauth2 is the best way to secure
> > geoserver.
> >
> > thanks a lot,
> > Matteo.
> >
> >
> > On 8 Mar 2017 17:28, "Emanuele Tajariol" <e...@geo-solutions.it> wrote:
> >
> > Hi Matteo,
> >
> > if you are going to use the embedded version of GeoFence, there should
> not
> > be
> > any problem, since in that configuration GeoFence relies entirely on the
> > users
> > and usergroups provided by GeoServer; so, once GeoServer recognises users
> > and
> > groups from an external source, it will feed them in GeoFence when
> needed.
> >
> > If you are using GeoFence as a standalone application, you'll need to
> > implement the DAOs in GeoFence for reading users and groups from the
> openam
> > services. You may find it useful to take the LDAP module as an example,
> > since
> > it implements the DAOs for reading users and groups from an LDAP
> directory.
> >
> >Cheers,
> >Emanuele
> >
> > Alle 10:48:53 di Tuesday 7 March 2017, Matteo Cusmai ha scritto:
> > > Hi all,
> > > I am going to secure my geoserver by using openam as oauth2
> > > authentication server. Is it possible to use users stored in openam to
> > > create rules in geofence?
> > >
> > > Regards,
> > > Matteo.
> > >
> > >
> > >
> > > Matteo Cusmai
> >
>
>
> --
> ==
> GeoServer Professional Services from the experts!
> Visit http://goo.gl/NWWaa2 for more information.
> ==
>
> Ing. Emanuele Tajariol
> Technical Lead
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax:+39 0584 1660272
> mob:   +39 380 2116282
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> ---
>
--
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geofence and Oauth2

2017-03-17 Thread Matteo Cusmai
Hi Tajarol,
thanks a lot for the quick replay.

I wouldn't like to allow geofence to access the ldap of openam, so if it
possible to use the embedded version in a cluster installation.?

Furthermore, I would like to know if Oauth2 is the best way to secure
geoserver.

thanks a lot,
Matteo.


On 8 Mar 2017 17:28, "Emanuele Tajariol" <e...@geo-solutions.it> wrote:

Hi Matteo,

if you are going to use the embedded version of GeoFence, there should not
be
any problem, since in that configuration GeoFence relies entirely on the
users
and usergroups provided by GeoServer; so, once GeoServer recognises users
and
groups from an external source, it will feed them in GeoFence when needed.

If you are using GeoFence as a standalone application, you'll need to
implement the DAOs in GeoFence for reading users and groups from the openam
services. You may find it useful to take the LDAP module as an example,
since
it implements the DAOs for reading users and groups from an LDAP directory.

   Cheers,
   Emanuele


Alle 10:48:53 di Tuesday 7 March 2017, Matteo Cusmai ha scritto:
> Hi all,
> I am going to secure my geoserver by using openam as oauth2 authentication
> server. Is it possible to use users stored in openam to create rules in
> geofence?
>
> Regards,
> Matteo.
>
>
>
> Matteo Cusmai


--
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/NWWaa2 for more information.
==

Ing. Emanuele Tajariol
Technical Lead

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

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-
--
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Geofence and Oauth2

2017-03-07 Thread Matteo Cusmai
Hi all,
I am going to secure my geoserver by using openam as oauth2 authentication
server. Is it possible to use users stored in openam to create rules in
geofence?

Regards,
Matteo.



Matteo Cusmai
--
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] GeoUML

2017-02-28 Thread Matteo Cusmai
Hi all,
I have to expose some WMS, WFS layers based on GeoUML standard.

There is someone that have experience with this kind of issue?
Regards,

Matteo Cusmai
--
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] W3ds

2013-04-23 Thread Matteo Cusmai
Hi Nuno,
thanks for answering.
However, GDAL are c++ library, right?
I am searching a 3D java library to use instead of JTS.
Do you know anyone?


On Tue, Apr 23, 2013 at 12:06 PM, Nuno Miguel Carvalho Oliveira 
nmco51...@gmail.com wrote:

 Hi,

 Sorry about the last mail wrong discussion.

 --- I think that there are 2 different issues here:

 I agree.

 --- 1) 3D geometric analisys: it could be implemented at geotools side (i
 have posted a question there, too);

 I can't say if geotools is the best place but I also will go that way.

 --- 2) providing 3D models over HTTP, such as XSD as W3DS could do, right?

 Yep, this is the job of W3DS.

 --- I don't know if Nuno Miguel have used some 3D analisys library to
 implement W3DS service.

 To implement the Geoserver W3DS module I don't use  any 3D analisys
 library.

 Although, to prepare the data to tests the W3DS module I had the necessity
 to do a
 heavy processing on 3D data (for example tiling 3D terrains and produce
 several LODs). To do this I made an
 extension for GDAL\OGR which is build on CGAL (Computational Geometry
 Algorithms Library).

 CGAL is not a geo ibrary but is one of the most powerful and well
 documented library for
 3D processing i have used so far. This link provide a good overview about
 the library:
 http://www.cgal.org/Manual/latest/doc_html/cgal_manual/packages.html.

 Best regards,

 Nuno Oliveira


 BR,
 Matteo.

 2013/4/23 Nuno Miguel Carvalho Oliveira nmco51...@gmail.com

 Hi,

 Infortunatly i have to slow down the developement of  W3DS module until
 Jully 2013.

 In meantime, I have recived several requests to improve the W3DS module.
 I also have be in touch with some members of OpenLayers3 team
 (the main point was to use W3DS for testing propuse in OpenLayers3
 development).

 Anyway, the main topic of the last requests related to W3DS was to serve
 Collada Models.
 I already take a look at the new Kml2 module proposed by Andrea Aime and
 extended W3DS
 styles to support the insertion of 3D Collada models.

 I will make an effort to provide until the next week a correct KML
 reponse format for W3DS
 and a basic tutorial.

 Best regards,

 Nuno Oliveira


 2013/4/23 Matteo Cusmai cusmaimat...@gmail.com

 Hi all,
 I think that there are 2 different issues here:
 1) 3D geometric analisys: it could be implemented at geotools side (i
 have posted a question there, too);
  2) providing 3D models over HTTP, such as XSD as W3DS could do, right?

 I don't know if Nuno Miguel have used some 3D analisys library to
 implement W3DS service.

 BR,
 Matteo.



 On Tue, Apr 23, 2013 at 11:00 AM, Andrea Aime 
 andrea.a...@geo-solutions.it wrote:

 On Tue, Apr 23, 2013 at 10:55 AM, Andrea Aime 
 andrea.a...@geo-solutions.it wrote:

 Which is something that can be tacked only if the change is pretty
 mechanic (search  replace level)
  or if there is substantial to back the switch.


 Ah hem... substantial funding

 Cheers
 Andrea


 --
 ==
 GeoServer training in Milan, 6th  7th June 2013!  Visit
 http://geoserver.geo-solutions.it for more information.
 ==

 Ing. Andrea Aime
 @geowolf
 Technical Lead

 GeoSolutions S.A.S.
 Via Poggio alle Viti 1187
 55054  Massarosa (LU)
 Italy
 phone: +39 0584 962313
 fax: +39 0584 1660272
 mob: +39  339 8844549

 http://www.geo-solutions.it
 http://twitter.com/geosolutions_it

 ---




 --
 Try New Relic Now  We'll Send You this Cool Shirt
 New Relic is the only SaaS-based application performance monitoring
 service
 that delivers powerful full stack analytics. Optimize and monitor your
 browser, app,  servers with just a few lines of code. Try New Relic
 and get this awesome Nerd Life shirt!
 http://p.sf.net/sfu/newrelic_d2d_apr
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users




--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Fwd: W3ds

2013-04-19 Thread Matteo Cusmai
-- Forwarded message --
From: Matteo Cusmai cusmaimat...@gmail.com
Date: 15 Apr 2013 21:18
Subject: W3ds
To: geoserver-users@lists.sourceforge.net
Cc:

Hi all,
is there any 3d support in geoserver roadmap.
I have noticed something about w3ds, will it be supported in the next
version of system?
Bye bye,
Matteo.
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] W3ds

2013-04-15 Thread Matteo Cusmai
Hi all,
is there any 3d support in geoserver roadmap.
I have noticed something about w3ds, will it be supported in the next
version of system?
Bye bye,
Matteo.
--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Geoserver 2.1.1 with postgis 2.0

2013-03-18 Thread Matteo Cusmai
Hi all,
i was using geoserver 2.1.1 with postgis 1.5 and every thing was ok.
Now i have updated my db server and postgis too, from 1.5 to 2.0.

I am trying to run the same layer, but i receive the following error:
Caused by: org.postgresql.util.PSQLException: ERROR: function
geomfromwkb(bytea) does not exist
  Hint: No function matches the given name and argument types. You might
need to add explicit type casts.


I have noticed that geoserver 2.1.1 use geomfromwkb(bytea) that is
deprecated in postgis 1.5 and therefore it has been deleted in postgis 2.0.

Is there some patch for geoserver 2.1.1, or do i have to upgrade geoserver
to 2.3 version?

Thanks in advance,
Matteo.
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geoserver 2.1.1 with postgis 2.0

2013-03-18 Thread Matteo Cusmai
Hi Jukka,
thanks a lot, it fixed my problem.
I was not able to find a solution by documentation.




On Mon, Mar 18, 2013 at 10:22 PM, Rahkonen Jukka
jukka.rahko...@mmmtike.fiwrote:

 Hi,

 Run legacy.sql in PostGIS and you will get the old names for the
 functions back.

 -Jukka Rahkonen-
 
 Matteo Cusmai wrote:

  Hi all,
 i was using geoserver 2.1.1 with postgis 1.5 and every thing was ok.
 Now i have updated my db server and postgis too, from 1.5 to 2.0.

  I am trying to run the same layer, but i receive the following error:
 Caused by: org.postgresql.util.PSQLException: ERROR: function
 geomfromwkb(bytea) does not exist
   Hint: No function matches the given name and argument types. You might
 need to add explicit type casts.


  I have noticed that geoserver 2.1.1 use geomfromwkb(bytea) that is
 deprecated in postgis 1.5 and therefore it has been deleted in postgis 2.0.

  Is there some patch for geoserver 2.1.1, or do i have to upgrade
 geoserver to 2.3 version?

  Thanks in advance,
  Matteo.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users