[Geoserver-users] Authkey module questions

2018-01-18 Thread Jim Hughes

Hi all,

Does the Authkey community module have a UI?  I tossed the jar(s) into a 
GeoServer 2.12.0, and I'm not seeing anything in the GeoServer admin UI.


Second, does the Authkey module work with GeoFence?  I'd like to be able 
to restrict Authkey access by applying additional CQL filters by key.  
(As an alternative, I'm thinking about trying out a custom 
ResourceAccessManager to do so...)


Thanks in advance,

Jim


--
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] YSLD style using interpolate function fails to create legend

2018-01-18 Thread Kris Johnson
Okay, got it.  Thanks.

On Thu, Jan 18, 2018 at 1:08 PM, Andrea Aime 
wrote:

> On Thu, Jan 18, 2018 at 7:55 PM, Kris Johnson  wrote:
>
>> Hi Andrea,
>>
>> Thank you for the explanation. I can now see why such a thing does not
>> exist.
>> It is not vital to my work, so I can get by without it just fine.
>>
>> One suggestion, however, might be that instead of displaying the error
>> message I mentioned, instead display a warning to the effect of "legend
>> graphics do not support any of the transformation functions."
>>
>
> Eh, the situation is more general, any usage of expressions in symbolizers
> can cause issues, it's not limited to transformation functions (and
> functions can be nested in complex expressions, in other functions and so
> on).
> But the result is different for different cases, it's not a simple "cannot
> support transformation functions", some attribute dependent styles manage
> to generate a legend, others do not...
> Again, less trivial than it seems, your simple case is simple, the general
> case is quite convoluted.
> So, the same response in my first mail applies here (DIY or contact
> commercial support)
>
> 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
> 
> 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.
>
>


-- 
Kris Johnson
Natural Resources Research Institute
5013 Miller Trunk Highway, Duluth, MN 55811
p: 218.788.2767
www.nrri.umn.edu
--
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] Failed to Add Raster Data Source

2018-01-18 Thread Kris Johnson
Hi Russ,

Thanks for this suggestion. I checked the permissions (via ls command) on
the directory:
drwxr-xr-x 2 root root0 Jan  3 18:17 DEM_3m_Statewide
(Same permissions for all parent directories).

...and the files themselves:
-rwxr-xr-x 1 root root   90 Dec 21 18:12 DEM_Statewide_3m1.tfw
-rwxr-xr-x 1 root root  69G Dec 21 20:43 DEM_Statewide_3m1.tif
-rwxr-xr-x 1 root root 5.2K Jan  3 18:15 DEM_Statewide_3m1.tif.aux.xml
-rwxr-xr-x 1 root root  25G Dec 22 01:11 DEM_Statewide_3m1.tif.ovr
-rwxr-xr-x 1 root root 6.1K Jan  3 18:17 DEM_Statewide_3m1.tif.xml

Here's the result of stat command on the TIF file itself:
File: /var/local/lidar/Statewide_NWI_LiDAR
Derived_Data_Layers/DEM_3m_Statewide/DEM_Statewide_3m1.tif
  Size: 73163857426 Blocks: 142898160  IO Block: 16384  regular file
Device: 52h/82d Inode: 3096224743846410  Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (0/root)   Gid: (0/root)
Access: 2017-12-21 18:12:46.841214100 +
Modify: 2017-12-21 20:43:39.126323800 +
Change: 2017-12-21 20:43:39.126323800 +
 Birth: -

I'm no linux expert, but I'm assuming geoserver would just need read
access, which is looks like everyone has.

Do you have another method I might be overlooking to make sure Geoserver
has the proper access to those files and directories?
Another thought that is that the mount is a network drive from a windows
machine mounted on the host (and then mounted on the container). So this is
why I was curious about permissions and access.

On Thu, Jan 18, 2018 at 12:06 PM, Russ  wrote:

> I sometimes get this and it is normally permissions on the files/directory.
>
> On 18 Jan 2018, at 17:21, Daniele Romagnoli  solutions.it> wrote:
>
> Hello Kris,
> I see this message on your log:
> GeoTiffMetadata2CRSAdapter::createCoordinateSystem:Only Geographic &
> Projected Systems are supported.
>
> Do you have any chance to run "gdalinfo" on that file and report back the
> output of that command?
>
> Regards,
> Daniele
>
> On Thu, Jan 18, 2018 at 4:54 PM, Kris Johnson  wrote:
>
>> Hello,
>>
>> I am running Geoserver (v. 2.12.1) in a docker container based on this
>> repo (https://github.com/oscarfonts/docker-geoserver)
>>
>> I am attempting to create a new layer based on a large GeoTIFF (150GB
>> uncompressed). The TIF file is on a directory mounted to the container.
>>
>> Here is the error message that appears:
>>
>>> ​
>>> Could not list layers for this store, an error occurred retrieving them:
>>> Failed to create reader from file:///var/local/lidar/Statewide_NWI_LiDAR
>>> Derived_Data_Layers/DEM_3m_Statewide/DEM_Statewide_3m1.tif and hints
>>> Hints: EXECUTOR_SERVICE = java.util.concurrent.ThreadPoo
>>> lExecutor@691d105[Running, pool size = 0, active threads = 0, queued
>>> tasks = 0, completed tasks = 0] REPOSITORY = org.geoserver.catalog.CatalogR
>>> epository@6f576373 System defaults: FORCE_AXIS_ORDER_HONORING = http
>>> STYLE_FACTORY = StyleFactoryImpl COMPARISON_TOLERANCE = 1.0E-8
>>> LENIENT_DATUM_SHIFT = true FILTER_FACTORY = FilterFactoryImpl
>>> GRID_COVERAGE_FACTORY = GridCoverageFactory TILE_ENCODING = null
>>> FORCE_LONGITUDE_FIRST_AXIS_ORDER = true FEATURE_FACTORY =
>>> org.geotools.feature.LenientFeatureFactoryImpl@1a10bb77
>>
>>
>> ​I have attached the logfile as well.
>> Thank you for any help you can provide.​
>>
>> --
>> Kris Johnson
>> Natural Resources Research Institute
>> 5013 Miller Trunk Highway, Duluth, MN 55811
>> 
>> p: 218.788.2767 <(218)%20788-2767>
>> www.nrri.umn.edu
>>
>>
>> 
>> --
>> 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-req
>> uesting-and-integrating-new-features-and-improvements-in-GeoServer
>>
>>
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>
>
> --
> Regards,
> Daniele Romagnoli
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Daniele Romagnoli
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 
> 55054
> 

Re: [Geoserver-users] YSLD style using interpolate function fails to create legend

2018-01-18 Thread Andrea Aime
On Thu, Jan 18, 2018 at 7:55 PM, Kris Johnson  wrote:

> Hi Andrea,
>
> Thank you for the explanation. I can now see why such a thing does not
> exist.
> It is not vital to my work, so I can get by without it just fine.
>
> One suggestion, however, might be that instead of displaying the error
> message I mentioned, instead display a warning to the effect of "legend
> graphics do not support any of the transformation functions."
>

Eh, the situation is more general, any usage of expressions in symbolizers
can cause issues, it's not limited to transformation functions (and
functions can be nested in complex expressions, in other functions and so
on).
But the result is different for different cases, it's not a simple "cannot
support transformation functions", some attribute dependent styles manage
to generate a legend, others do not...
Again, less trivial than it seems, your simple case is simple, the general
case is quite convoluted.
So, the same response in my first mail applies here (DIY or contact
commercial support)

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
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,
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

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] Failed to Add Raster Data Source

2018-01-18 Thread Kris Johnson
Hi Daniele,

Here's the output from gdalinfo:
Driver: GTiff/GeoTIFF
Files: L:\Statewide_NWI_LiDAR
Derived_Data_Layers\DEM_3m_Statewide\DEM_Statewide
_3m1.tif
   L:\Statewide_NWI_LiDAR
Derived_Data_Layers\DEM_3m_Statewide\DEM_Statewide
_3m1.tif.ovr
   L:\Statewide_NWI_LiDAR
Derived_Data_Layers\DEM_3m_Statewide\DEM_Statewide
_3m1.tif.aux.xml
Size is 190131, 219514
Coordinate System is:
PROJCS["NAD_1983_UTM_Zone_15N",
GEOGCS["NAD83",
DATUM["North_American_Datum_1983",
SPHEROID["GRS 1980",6378137,298.2572221010042,
AUTHORITY["EPSG","7019"]],
AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4269"]],
PROJECTION["Transverse_Mercator"],
PARAMETER["latitude_of_origin",0],
PARAMETER["central_meridian",-93],
PARAMETER["scale_factor",0.9996],
PARAMETER["false_easting",50],
PARAMETER["false_northing",0],
UNIT["metre",1,
AUTHORITY["EPSG","9001"]],
AUTHORITY["EPSG","26915"]]
Origin = (188545.000,5471409.000)
Pixel Size = (3.000,-3.000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  COMPRESSION=LZW
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  188545.000, 5471409.000) ( 97d17' 9.43"W, 49d18'57.04"N)
Lower Left  (  188545.000, 4812867.000) ( 96d50'46.58"W, 43d24'14.34"N)
Upper Right (  758938.000, 5471409.000) ( 89d26' 6.42"W, 49d20'25.34"N)
Lower Right (  758938.000, 4812867.000) ( 89d48' 4.27"W, 43d25'26.23"N)
Center  (  473741.500, 5142138.000) ( 93d20'30.43"W, 46d25'56.29"N)
Band 1 Block=128x128 Type=Float32, ColorInterp=Gray
  Min=72.382 Max=700.181
  Minimum=72.382, Maximum=700.181, Mean=370.215, StdDev=67.277
  NoData Value=-3.402822995e+38
  Overviews: 95066x109757, 47533x54879, 23767x27440, 11884x13720,
5942x6860, 297
1x3430, 1486x1715, 743x858, 372x429, 186x215
  Metadata:
RepresentationType=ATHEMATIC
STATISTICS_COVARIANCES=4526.197233865824
STATISTICS_MAXIMUM=700.18103027344
STATISTICS_MEAN=370.21508961182
STATISTICS_MINIMUM=72.382476806641
STATISTICS_SKIPFACTORX=1
STATISTICS_SKIPFACTORY=1
STATISTICS_STDDEV=67.277018616061

On Thu, Jan 18, 2018 at 11:21 AM, Daniele Romagnoli <
daniele.romagn...@geo-solutions.it> wrote:

> Hello Kris,
> I see this message on your log:
> GeoTiffMetadata2CRSAdapter::createCoordinateSystem:Only Geographic &
> Projected Systems are supported.
>
> Do you have any chance to run "gdalinfo" on that file and report back the
> output of that command?
>
> Regards,
> Daniele
>
> On Thu, Jan 18, 2018 at 4:54 PM, Kris Johnson  wrote:
>
>> Hello,
>>
>> I am running Geoserver (v. 2.12.1) in a docker container based on this
>> repo (https://github.com/oscarfonts/docker-geoserver)
>>
>> I am attempting to create a new layer based on a large GeoTIFF (150GB
>> uncompressed). The TIF file is on a directory mounted to the container.
>>
>> Here is the error message that appears:
>>
>>> ​
>>> Could not list layers for this store, an error occurred retrieving them:
>>> Failed to create reader from file:///var/local/lidar/Statewide_NWI_LiDAR
>>> Derived_Data_Layers/DEM_3m_Statewide/DEM_Statewide_3m1.tif and hints
>>> Hints: EXECUTOR_SERVICE = java.util.concurrent.ThreadPoo
>>> lExecutor@691d105[Running, pool size = 0, active threads = 0, queued
>>> tasks = 0, completed tasks = 0] REPOSITORY = org.geoserver.catalog.CatalogR
>>> epository@6f576373 System defaults: FORCE_AXIS_ORDER_HONORING = http
>>> STYLE_FACTORY = StyleFactoryImpl COMPARISON_TOLERANCE = 1.0E-8
>>> LENIENT_DATUM_SHIFT = true FILTER_FACTORY = FilterFactoryImpl
>>> GRID_COVERAGE_FACTORY = GridCoverageFactory TILE_ENCODING = null
>>> FORCE_LONGITUDE_FIRST_AXIS_ORDER = true FEATURE_FACTORY =
>>> org.geotools.feature.LenientFeatureFactoryImpl@1a10bb77
>>
>>
>> ​I have attached the logfile as well.
>> Thank you for any help you can provide.​
>>
>> --
>> Kris Johnson
>> Natural Resources Research Institute
>> 5013 Miller Trunk Highway, Duluth, MN 55811
>> 
>> p: 218.788.2767 <(218)%20788-2767>
>> www.nrri.umn.edu
>>
>>
>> 
>> --
>> 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-req
>> 

Re: [Geoserver-users] YSLD style using interpolate function fails to create legend

2018-01-18 Thread Kris Johnson
Hi Andrea,

Thank you for the explanation. I can now see why such a thing does not
exist.
It is not vital to my work, so I can get by without it just fine.

One suggestion, however, might be that instead of displaying the error
message I mentioned, instead display a warning to the effect of "legend
graphics do not support any of the transformation functions."

Thanks again for your help.

On Thu, Jan 18, 2018 at 10:56 AM, Andrea Aime 
wrote:

> Hi,
> the legend graphic generation code simply does not support any of the
> transformation functions, regardless of the styling language used to create
> the style:
> http://docs.geoserver.org/latest/en/user/styling/sld/
> tipstricks/transformation-func.html
>
> Implementing support for them is something I'd like to work on and I
> looked into, but it's nowhere near trivial in the general case.
> To clarify, expanding a single transformation function should be easy
> enough, but a symbolizer could use one function for the
> fill color, one for the stroke color, one for the stroke width... and at
> this point you should see that we'd have to generate all possible
> combinations, and end up facing a potentially dangerous combinatoric
> explosion (in terms of memory and CPU time used to expand it),
> that would need to be controlled (e.g., make GetLegendGraphic refuse to
> generate the output past a configurable safety limit).
>
> So, not sure if anyone wants to work on it in their spare time. If not,
> there is always commercial support:
> http://geoserver.org/support/
>
> Cheers
> Andrea
>
>
> On Thu, Jan 18, 2018 at 4:34 PM, Kris Johnson  wrote:
>
>> Hello,
>>
>> I am using geoserver 2.12.1.
>> I successfully created a YSLD style that makes use of the interpolate
>> function:
>>
>> feature-styles:
>>> - name: Yearly Cost
>>>   rules:
>>>   - title: fill-graphic
>>> symbolizers:
>>> - polygon:
>>> stroke-width: 0.1
>>> stroke-color: '#353535'
>>> fill-color: ${interpolate(yearlycost, 40366, '#e0ecf4', 46500,
>>> '#9ebcda', 61299, '#8856a7', 'color')}
>>
>>
>> However, when I click "Preview legend", I get an error message at the top
>> of the screen: "Failed to build legend preview. Check to see if the style
>> is valid."
>>
>> This seems to be the pertinent portion of the logs:
>>
>>> 2018-01-18 15:36:41,349 WARN [web.data] - Failed to build legend preview
>>> java.lang.NullPointerException
>>> at org.geotools.filter.function.InterpolateFunction.evaluate(In
>>> terpolateFunction.java:247)
>>> at org.geotools.renderer.style.SLDStyleFactory.evalToColor(SLDS
>>> tyleFactory.java:1781)
>>> at org.geotools.renderer.style.SLDStyleFactory.getPaint(SLDStyl
>>> eFactory.java:1142)
>>> at org.geotools.renderer.style.SLDStyleFactory.setPolygonStyleF
>>> ill(SLDStyleFactory.java:486)
>>> at org.geotools.renderer.style.SLDStyleFactory.createPolygonSty
>>> le(SLDStyleFactory.java:441)
>>> at org.geotools.renderer.style.SLDStyleFactory.createStyleInter
>>> nal(SLDStyleFactory.java:380)
>>> at org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDS
>>> tyleFactory.java:333)
>>> at org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBu
>>> ilder.buildLegendGraphic(BufferedImageLegendGraphicBuilder.java:415)
>>> at org.geoserver.wms.web.data.StyleAdminPanel$7.onClick(StyleAd
>>> minPanel.java:360)
>>> at org.geoserver.web.wicket.GeoServerAjaxFormLink.onSubmit(GeoS
>>> erverAjaxFormLink.java:42)
>>> at org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onS
>>> ubmit(AjaxSubmitLink.java:111)
>>> at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$AjaxFormS
>>> ubmitter.onSubmit(AjaxFormSubmitBehavior.java:215)
>>> at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form
>>> .java:787)
>>> at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(A
>>> jaxFormSubmitBehavior.java:171)
>>> at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBe
>>> havior.java:155)
>>> at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest
>>> (AbstractDefaultAjaxBehavior.java:601)
>>> at sun.reflect.GeneratedMethodAccessor450.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at org.apache.wicket.RequestListenerInterface.internalInvoke(Re
>>> questListenerInterface.java:258)
>>> at org.apache.wicket.RequestListenerInterface.invoke(RequestLis
>>> tenerInterface.java:241)
>>> at org.apache.wicket.core.request.handler.ListenerInterfaceRequ
>>> estHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
>>> at org.apache.wicket.core.request.handler.ListenerInterfaceRequ
>>> estHandler.respond(ListenerInterfaceRequestHandler.java:234)
>>> at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor
>>> .respond(RequestCycle.java:895)
>>> at org.apache.wicket.request.RequestHandlerStack.execute(Reques
>>> tHandlerStack.java:64)
>>> at 

Re: [Geoserver-users] Failed to Add Raster Data Source

2018-01-18 Thread Russ
I sometimes get this and it is normally permissions on the files/directory.

> On 18 Jan 2018, at 17:21, Daniele Romagnoli 
>  wrote:
> 
> Hello Kris,
> I see this message on your log:
> GeoTiffMetadata2CRSAdapter::createCoordinateSystem:Only Geographic & 
> Projected Systems are supported.
> 
> Do you have any chance to run "gdalinfo" on that file and report back the 
> output of that command?
> 
> Regards,
> Daniele
> 
>> On Thu, Jan 18, 2018 at 4:54 PM, Kris Johnson  wrote:
>> Hello,
>> 
>> I am running Geoserver (v. 2.12.1) in a docker container based on this repo 
>> (https://github.com/oscarfonts/docker-geoserver)
>> 
>> I am attempting to create a new layer based on a large GeoTIFF (150GB 
>> uncompressed). The TIF file is on a directory mounted to the container.
>> 
>> Here is the error message that appears:
>>> ​Could not list layers for this store, an error occurred retrieving them: 
>>> Failed to create reader from file:///var/local/lidar/Statewide_NWI_LiDAR 
>>> Derived_Data_Layers/DEM_3m_Statewide/DEM_Statewide_3m1.tif and hints Hints: 
>>> EXECUTOR_SERVICE = java.util.concurrent.ThreadPoolExecutor@691d105[Running, 
>>> pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0] 
>>> REPOSITORY = org.geoserver.catalog.CatalogRepository@6f576373 System 
>>> defaults: FORCE_AXIS_ORDER_HONORING = http STYLE_FACTORY = StyleFactoryImpl 
>>> COMPARISON_TOLERANCE = 1.0E-8 LENIENT_DATUM_SHIFT = true FILTER_FACTORY = 
>>> FilterFactoryImpl GRID_COVERAGE_FACTORY = GridCoverageFactory TILE_ENCODING 
>>> = null FORCE_LONGITUDE_FIRST_AXIS_ORDER = true FEATURE_FACTORY = 
>>> org.geotools.feature.LenientFeatureFactoryImpl@1a10bb77
>> 
>> ​I have attached the logfile as well.
>> Thank you for any help you can provide.​
>> 
>> -- 
>> Kris Johnson
>> Natural Resources Research Institute
>> 5013 Miller Trunk Highway, Duluth, MN 55811
>> p: 218.788.2767
>> www.nrri.umn.edu
>> 
>> 
>> --
>> 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,
> Daniele Romagnoli
> ==
> GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
> for more information.
> ==
> 
> Ing. Daniele Romagnoli
> Senior Software Engineer
> 
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax:  +39 0584 1660272
> 
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
> 
> ---
> 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 

Re: [Geoserver-users] Failed to Add Raster Data Source

2018-01-18 Thread Daniele Romagnoli
Hello Kris,
I see this message on your log:
GeoTiffMetadata2CRSAdapter::createCoordinateSystem:Only Geographic &
Projected Systems are supported.

Do you have any chance to run "gdalinfo" on that file and report back the
output of that command?

Regards,
Daniele

On Thu, Jan 18, 2018 at 4:54 PM, Kris Johnson  wrote:

> Hello,
>
> I am running Geoserver (v. 2.12.1) in a docker container based on this
> repo (https://github.com/oscarfonts/docker-geoserver)
>
> I am attempting to create a new layer based on a large GeoTIFF (150GB
> uncompressed). The TIF file is on a directory mounted to the container.
>
> Here is the error message that appears:
>
>> ​
>> Could not list layers for this store, an error occurred retrieving them:
>> Failed to create reader from file:///var/local/lidar/Statewide_NWI_LiDAR
>> Derived_Data_Layers/DEM_3m_Statewide/DEM_Statewide_3m1.tif and hints
>> Hints: EXECUTOR_SERVICE = java.util.concurrent.ThreadPoolExecutor@691d105
>> [Running, pool size = 0, active threads = 0, queued tasks = 0, completed
>> tasks = 0] REPOSITORY = org.geoserver.catalog.CatalogRepository@6f576373
>> System defaults: FORCE_AXIS_ORDER_HONORING = http STYLE_FACTORY =
>> StyleFactoryImpl COMPARISON_TOLERANCE = 1.0E-8 LENIENT_DATUM_SHIFT = true
>> FILTER_FACTORY = FilterFactoryImpl GRID_COVERAGE_FACTORY =
>> GridCoverageFactory TILE_ENCODING = null FORCE_LONGITUDE_FIRST_AXIS_ORDER
>> = true FEATURE_FACTORY = org.geotools.feature.LenientFeatureFactoryImpl@
>> 1a10bb77
>
>
> ​I have attached the logfile as well.
> Thank you for any help you can provide.​
>
> --
> Kris Johnson
> Natural Resources Research Institute
> 5013 Miller Trunk Highway, Duluth, MN 55811
> p: 218.788.2767 <(218)%20788-2767>
> www.nrri.umn.edu
>
>
> 
> --
> 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,
Daniele Romagnoli
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==

Ing. Daniele Romagnoli
Senior Software Engineer

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

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

---
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! 

Re: [Geoserver-users] YSLD style using interpolate function fails to create legend

2018-01-18 Thread Andrea Aime
Hi,
the legend graphic generation code simply does not support any of the
transformation functions, regardless of the styling language used to create
the style:
http://docs.geoserver.org/latest/en/user/styling/sld/tipstricks/transformation-func.html

Implementing support for them is something I'd like to work on and I looked
into, but it's nowhere near trivial in the general case.
To clarify, expanding a single transformation function should be easy
enough, but a symbolizer could use one function for the
fill color, one for the stroke color, one for the stroke width... and at
this point you should see that we'd have to generate all possible
combinations, and end up facing a potentially dangerous combinatoric
explosion (in terms of memory and CPU time used to expand it),
that would need to be controlled (e.g., make GetLegendGraphic refuse to
generate the output past a configurable safety limit).

So, not sure if anyone wants to work on it in their spare time. If not,
there is always commercial support:
http://geoserver.org/support/

Cheers
Andrea


On Thu, Jan 18, 2018 at 4:34 PM, Kris Johnson  wrote:

> Hello,
>
> I am using geoserver 2.12.1.
> I successfully created a YSLD style that makes use of the interpolate
> function:
>
> feature-styles:
>> - name: Yearly Cost
>>   rules:
>>   - title: fill-graphic
>> symbolizers:
>> - polygon:
>> stroke-width: 0.1
>> stroke-color: '#353535'
>> fill-color: ${interpolate(yearlycost, 40366, '#e0ecf4', 46500,
>> '#9ebcda', 61299, '#8856a7', 'color')}
>
>
> However, when I click "Preview legend", I get an error message at the top
> of the screen: "Failed to build legend preview. Check to see if the style
> is valid."
>
> This seems to be the pertinent portion of the logs:
>
>> 2018-01-18 15:36:41,349 WARN [web.data] - Failed to build legend preview
>> java.lang.NullPointerException
>> at org.geotools.filter.function.InterpolateFunction.evaluate(
>> InterpolateFunction.java:247)
>> at org.geotools.renderer.style.SLDStyleFactory.evalToColor(
>> SLDStyleFactory.java:1781)
>> at org.geotools.renderer.style.SLDStyleFactory.getPaint(
>> SLDStyleFactory.java:1142)
>> at org.geotools.renderer.style.SLDStyleFactory.setPolygonStyleFill(
>> SLDStyleFactory.java:486)
>> at org.geotools.renderer.style.SLDStyleFactory.createPolygonStyle(
>> SLDStyleFactory.java:441)
>> at org.geotools.renderer.style.SLDStyleFactory.createStyleInternal(
>> SLDStyleFactory.java:380)
>> at org.geotools.renderer.style.SLDStyleFactory.createStyle(
>> SLDStyleFactory.java:333)
>> at org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuil
>> der.buildLegendGraphic(BufferedImageLegendGraphicBuilder.java:415)
>> at org.geoserver.wms.web.data.StyleAdminPanel$7.onClick(
>> StyleAdminPanel.java:360)
>> at org.geoserver.web.wicket.GeoServerAjaxFormLink.onSubmit(
>> GeoServerAjaxFormLink.java:42)
>> at org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.
>> onSubmit(AjaxSubmitLink.java:111)
>> at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$
>> AjaxFormSubmitter.onSubmit(AjaxFormSubmitBehavior.java:215)
>> at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:787)
>> at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(
>> AjaxFormSubmitBehavior.java:171)
>> at org.apache.wicket.ajax.AjaxEventBehavior.respond(
>> AjaxEventBehavior.java:155)
>> at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(
>> AbstractDefaultAjaxBehavior.java:601)
>> at sun.reflect.GeneratedMethodAccessor450.invoke(Unknown Source)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.apache.wicket.RequestListenerInterface.internalInvoke(
>> RequestListenerInterface.java:258)
>> at org.apache.wicket.RequestListenerInterface.invoke(
>> RequestListenerInterface.java:241)
>> at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandle
>> r.invokeListener(ListenerInterfaceRequestHandler.java:248)
>> at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandle
>> r.respond(ListenerInterfaceRequestHandler.java:234)
>> at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(
>> RequestCycle.java:895)
>> at org.apache.wicket.request.RequestHandlerStack.execute(
>> RequestHandlerStack.java:64)
>> at org.apache.wicket.request.cycle.RequestCycle.execute(
>> RequestCycle.java:265)
>> at org.apache.wicket.request.cycle.RequestCycle.
>> processRequest(RequestCycle.java:222)
>> at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(
>> RequestCycle.java:293)
>> at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(
>> WicketFilter.java:261)
>> at org.apache.wicket.protocol.http.WicketFilter.
>> processRequest(WicketFilter.java:203)
>> at org.apache.wicket.protocol.http.WicketServlet.doPost(
>> WicketServlet.java:159)
>> at 

Re: [Geoserver-users] Appschema and Sld for WMS

2018-01-18 Thread Francisco Caldeira
Hello Nuno,



That is not the solution either



http://inspire.ine.pt:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd;>
 
   

  The requested Style can not be used with this layer.  The style 
specifies an attribute of 
gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href 
and the layer is: gn:NamedPlace







Regards

Francisco



Cumprimentos,

Francisco Caldeira

Serviço de Georreferenciação

  Av. A. José de Almeida – 1000-043 Lisboa

  Tel.+351 218426100 / ext.1438

francisco.calde...@ine.pt | www.ine.pt 

  ___



cid:image001.gif@01cbc6ea.4a3b0560

From: Nuno Oliveira [mailto:nuno.olive...@geo-solutions.it]
Sent: quinta-feira, 18 de janeiro de 2018 15:26
To: geoserver-users@lists.sourceforge.net
Cc: Francisco Caldeira
Subject: Re: [Geoserver-users] Appschema and Sld for WMS



The property name path:



 

   
gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href

 


should be:



 

   
gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href

 


gn:NamedPlace/ should be removed from the path since the path needs to be 
relative to the root entity.


Hopefully this should work :)

On 01/18/2018 02:58 PM, Francisco Caldeira wrote:

Hello Nuno,



I went to confirm again, and the message is:



http://inspire.ine.pt:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd>
 
"http://inspire.ine.pt:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd;>
 
   

  The requested Style can not be used with this layer.  The style 
specifies an attribute of 
gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href
 
and the layer is: gn:NamedPlace







My sld now look like this:





http://www.opengis.net/sldStyledLayerDescriptor.xsd> 
"http://www.opengis.net/sld StyledLayerDescriptor.xsd"

 xmlns=  "http://www.opengis.net/sld;

 xmlns:ogc=  "http://www.opengis.net/ogc;

 xmlns:xlink=  "http://www.w3.org/1999/xlink;

 xmlns:gn=  
"http://inspire.ec.europa.eu/schemas/gn/4.0;

 xmlns:xsi=  
"http://www.w3.org/2001/XMLSchema-instance;>

  

  

GN Geographical Names





  GN.NamedPlaced

  Label place name

  

  

  



  GN.NamedPlaced.name

  Label with no outline

  A arial 10pt label  

   

 

   
gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href

 

 

  Arial

  10

   

  

  



  0.5

  0.5





  0

  0



  



   



  



  





Regards

Francisco



Cumprimentos,

Francisco Caldeira

Serviço de Georreferenciação

  Av. A. José de Almeida – 1000-043 Lisboa

  Tel.+351 218426100 / ext.1438

francisco.calde...@ine.pt | www.ine.pt 

  ___



cid:image001.gif@01cbc6ea.4a3b0560

-- 
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
for more information.
==

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

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

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

---
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, 

[Geoserver-users] YSLD style using interpolate function fails to create legend

2018-01-18 Thread Kris Johnson
Hello,

I am using geoserver 2.12.1.
I successfully created a YSLD style that makes use of the interpolate
function:

feature-styles:
> - name: Yearly Cost
>   rules:
>   - title: fill-graphic
> symbolizers:
> - polygon:
> stroke-width: 0.1
> stroke-color: '#353535'
> fill-color: ${interpolate(yearlycost, 40366, '#e0ecf4', 46500,
> '#9ebcda', 61299, '#8856a7', 'color')}


However, when I click "Preview legend", I get an error message at the top
of the screen: "Failed to build legend preview. Check to see if the style
is valid."

This seems to be the pertinent portion of the logs:

> 2018-01-18 15:36:41,349 WARN [web.data] - Failed to build legend preview
> java.lang.NullPointerException
> at
> org.geotools.filter.function.InterpolateFunction.evaluate(InterpolateFunction.java:247)
> at
> org.geotools.renderer.style.SLDStyleFactory.evalToColor(SLDStyleFactory.java:1781)
> at
> org.geotools.renderer.style.SLDStyleFactory.getPaint(SLDStyleFactory.java:1142)
> at
> org.geotools.renderer.style.SLDStyleFactory.setPolygonStyleFill(SLDStyleFactory.java:486)
> at
> org.geotools.renderer.style.SLDStyleFactory.createPolygonStyle(SLDStyleFactory.java:441)
> at
> org.geotools.renderer.style.SLDStyleFactory.createStyleInternal(SLDStyleFactory.java:380)
> at
> org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:333)
> at
> org.geoserver.wms.legendgraphic.BufferedImageLegendGraphicBuilder.buildLegendGraphic(BufferedImageLegendGraphicBuilder.java:415)
> at
> org.geoserver.wms.web.data.StyleAdminPanel$7.onClick(StyleAdminPanel.java:360)
> at
> org.geoserver.web.wicket.GeoServerAjaxFormLink.onSubmit(GeoServerAjaxFormLink.java:42)
> at
> org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:111)
> at
> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$AjaxFormSubmitter.onSubmit(AjaxFormSubmitBehavior.java:215)
> at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:787)
> at
> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:171)
> at
> org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:155)
> at
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:601)
> at sun.reflect.GeneratedMethodAccessor450.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
> at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
> at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
> at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
> at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895)
> at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
> at
> org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
> at
> org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:157)
> at
> org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:174)
> at
> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
> at
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
> at
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
> at
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
> at
> org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
> at
> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
> at 

Re: [Geoserver-users] Appschema and Sld for WMS

2018-01-18 Thread Nuno Oliveira

The property name path:



 

*gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href*

 


should be:



 

*gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href
*

 

*
**gn:NamedPlace/ *should be removed from the path since the path needs to be relative to the root 
entity.



Hopefully this should work :)

On 01/18/2018 02:58 PM, Francisco Caldeira wrote:


Hello Nuno,

I went to confirm again, and the message is:

"http://inspire.ine.pt:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd;> 
 


  The requested Style can not be used with this layer.  The style specifies an attribute of 
*gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href and 
the layer is: gn:NamedPlace*




My sld now look like this:



http://www.opengis.net/sld StyledLayerDescriptor.xsd"

 xmlns="http://www.opengis.net/sld;

 xmlns:ogc="http://www.opengis.net/ogc;

 xmlns:xlink="http://www.w3.org/1999/xlink;

 xmlns:gn="http://inspire.ec.europa.eu/schemas/gn/4.0;

 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>

  

  

    GN Geographical Names

    

    

  GN.NamedPlaced

  Label place name

  

  

  

    

GN.NamedPlaced.name

  Label with no outline

  A arial 10pt label 

   

 

*gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href*

 

 

  Arial

  10

   

  

  

    

0.5

0.5

    

    

0

0

    

  

    

   

    

  

    

  



Regards

Francisco

*C**umprimentos,*

*Francisco Caldeira*

*Serviço de Georreferenciação*

*Av. A. José de Almeida – 1000-043 Lisboa*

***Tel.+351 218426100 / ext.1438*

*francisco.calde...@ine.pt **| www.ine.pt 
*

***___*

**

cid:image001.gif@01cbc6ea.4a3b0560


--
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
for more information.
==

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

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

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

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

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

Re: [Geoserver-users] mongodb layer

2018-01-18 Thread Nuno Oliveira

Indeed, thanks Matteo !

On 01/18/2018 02:54 PM, Andrea Aime wrote:

Hi Matteo,
that's actually a great idea, and it would also allow to set a default time value of 
"PT5M/PRESENT" which would

give back the last five minutes of data

Cheers
Andrea


On Wed, Jan 17, 2018 at 9:03 PM, Matteo Cusmai > wrote:


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/layers.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 

Re: [Geoserver-users] Appschema and Sld for WMS

2018-01-18 Thread Francisco Caldeira
Hello Nuno,



I went to confirm again, and the message is:



http://inspire.ine.pt:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd;>
 
   

  The requested Style can not be used with this layer.  The style 
specifies an attribute of 
gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href
 
and the layer is: gn:NamedPlace







My sld now look like this:





http://www.opengis.net/sld StyledLayerDescriptor.xsd"

 xmlns="http://www.opengis.net/sld;

 xmlns:ogc="http://www.opengis.net/ogc;

 xmlns:xlink="http://www.w3.org/1999/xlink;

 xmlns:gn="http://inspire.ec.europa.eu/schemas/gn/4.0;

 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>

  

  

GN Geographical Names





  GN.NamedPlaced

  Label place name

  

  

  



  GN.NamedPlaced.name

  Label with no outline

  A arial 10pt label  

   

 

   
gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href

 

 

  Arial

  10

   

  

  



  0.5

  0.5





  0

  0



  



   



  



  





Regards

Francisco



Cumprimentos,

Francisco Caldeira

Serviço de Georreferenciação

  Av. A. José de Almeida – 1000-043 Lisboa

  Tel.+351 218426100 / ext.1438

francisco.calde...@ine.pt | www.ine.pt 

  ___



cid:image001.gif@01cbc6ea.4a3b0560

From: Nuno Oliveira [mailto:nuno.olive...@geo-solutions.it]
Sent: quinta-feira, 18 de janeiro de 2018 14:43
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Appschema and Sld for WMS



*Maybe we step on a new bug :P

On 01/18/2018 02:16 PM, Nuno Oliveira wrote:

Hi Francisco,

Euuh is a bit a strange that the error still referring the full property 
path:

gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href

If the style property was updated to:

gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href

The error message should say IMHO:

The requested Style can not be used with this layer.  The style specifies an 
attribute of
gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href
and the layer is: gn:NamedPlace

Maybe he step on a new bug :P

On 01/18/2018 02:05 PM, Francisco Caldeira wrote:

Hello Nuno,



Thanks for the reply but it doesn’t fix it, I still got the message on layer 
preview…



  The requested Style can not be used with this layer.  The style 
specifies an attribute of 
gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href
 
and the layer is: gn:NamedPlace



Regards

F



Cumprimentos,

Francisco Caldeira

Serviço de Georreferenciação

  Av. A. José de Almeida – 1000-043 Lisboa

  Tel.+351 218426100 / ext.1438

francisco.calde...@ine.pt | www.ine.pt 

  ___



cid:image001.gif@01cbc6ea.4a3b0560

From: Nuno Oliveira [mailto:nuno.olive...@geo-solutions.it]
Sent: terça-feira, 16 de janeiro de 2018 16:29
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Appschema and Sld for WMS



Hi Francisco,

You may be interested in this thread:
http://osgeo-org.1560.x6.nabble.com/Referencing-App-Schema-defined-feature-types-properties-in-styles-SLD-td5347766.html

long story short you should try to reference your property using a path 
relative to the root entity:




gn:NamedPlace/gn:name/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text/@xlink:href



If this fix your issue please remember to update the related ticket !

Kind regards,

Nuno Oliveira

On 12/04/2017 11:08 AM, Francisco Caldeira wrote:

Hello,



Ok Nuno Oliveira, I’m going to create the issue on the bug tracker.



Thank you and all for the help!

Regards

F





cid:image001.gif@01cbc6ea.4a3b0560
Francisco Caldeira - Serviço de GeoInformação

I.N.E. - Instituto Nacional de Estatística
Avenida António José de Almeida
100-043 Lisboa
Portugal
francisco.calde...@ine.pt
(351) - 21 8426100
Ext. 1438

From: Nuno Oliveira [mailto:nuno.olive...@geo-solutions.it]
Sent: sexta-feira, 1 de dezembro de 2017 10:07
To: Andrea Aime
Cc: GeoServer Mailing List List
Subject: Re: [Geoserver-users] Appschema and Sld for WMS



Sorry Andrea forgot to share the details indeed, my bad.

The inner exception is actually swallowed at some point (this should be 
fixed some way ... logging the exception ?), the relevant part is this one 
(full stacktrace attached):

java.lang.NullPointerException
at 
org.geotools.feature.xpath.FeatureTypeAttributePointer.(FeatureTypeAttributePointer.java:90)
at 
org.geotools.feature.xpath.SingleFeatureTypeAttributeIterator.getNodePointer(SingleFeatureTypeAttributeIterator.java:82)
at 

Re: [Geoserver-users] mongodb layer

2018-01-18 Thread Andrea Aime
Hi Matteo,
that's actually a great idea, and it would also allow to set a default time
value of "PT5M/PRESENT" which would
give back the last five minutes of data

Cheers
Andrea


On Wed, Jan 17, 2018 at 9:03 PM, Matteo Cusmai 
wrote:

> 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/1
>> 8.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