Re: [Geoserver-users] getting height data from store

2018-11-12 Thread Phil Scadden
Try using the WMS GetFeatureInfo.  This will return the value of raster layer 
at your point. I use this to implement a hover service, showing the value of a 
raster under the mouse.

-Original Message-
From: gold1 
Sent: Sunday, 11 November 2018 05:30
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] getting height data from store

I'm using Leaflet map + Geo server to display a map. I have a tiff file and a
dt2 file.

I created a geotiff store and layer that i'm showing in leaflet, And i created 
a DTED store and layer in geo server

I want now to display the altitude of each point from the DEM Layer, like
so:

Latitude: 32.123 ,longitude: 12.112, Altitude: 12312 m

How do i get the altitude data from the store i created?

I tried using wcs protocol but i only get images.

thanks.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.


___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] Rasters showing correctly in layer preview, but won't load in QGIS through WMS

2018-11-12 Thread Andrea Aime
Hi Ville,
not sure, but I would open a ticket with:

   - sample data
   - the wms request involved
   - the full stack trace (please no omissions, every part of it is
   important, from beginning to end)

Cheers
Andrea


On Mon, Nov 12, 2018 at 1:50 PM Ville Koivisto <
ville.koivi...@kuntotekniikka.fi> wrote:

> *Dear list, *
>
>
>
> I have an issue, summed up in the message title. I have two rasters, one
> ortophoto and one planning map which show correctly in *layer preview* in
> Geoserver. The problem is that when I try to retrieve them via WMS in QGIS,
> I can find them but they won’t load. I have the same exact rasters in
> another geoserver, and on a different server altogether, and from there I
> can retrieve them to QGIS. There is a slight version difference, 2.13.2 vs.
> 2.13.0.
>
>
>
> Another raster is an image pyramid and another geotiff. I guess format is
> not the issue, since behavior is shared between them.
>
>
>
> WMS is enabled, workspace is enable and WMS is checked as a service.
>
>
>
> I have following error messages in log (attached relevant log):
>
>
>
> 2018-11-12 14:18:47,584 ERROR [geoserver.ows] -
>
> org.geoserver.platform.ServiceException: Error rendering coverage on the
> fast path
>
> .
>
> .
>
> .
>
>
>
> Caused by: org.geoserver.platform.ServiceException:
> java.lang.IllegalArgumentException: The reference geometry must be either
> Polygon, MultiPolygon, or a polygonal PreparedGeometry
>
> .
>
> .
>
> .
>
>
>
> Any advice from where to start troubleshooting?
>
>
>
> *Best regards,*
>
>
>
> Ville Koivisto
>
> +35840 701 4283
>
> GIS Expert
>
> Suomen kuntotekniikka Oy
>
> [image: KUNTO TEKNIIKKA logo transparent FF9900]
>
>
> ___
> 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, ogni altra operazione è illecita. Le
sarei comunque grato se potesse darmene notizia. This email is intended
only for the person or entity to which it is addressed and may contain
information that is privileged, confidential or otherwise protected from
disclosure. We remind that - as provided by European Regulation 2016/679
“GDPR” - copying, dissemination or use of this e-mail or the information
herein by anyone other than the intended recipient is prohibited. If you
have received this email by mistake, please notify us immediately by
telephone or e-mail.*
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


[Geoserver-users] Rasters showing correctly in layer preview, but won't load in QGIS through WMS

2018-11-12 Thread Ville Koivisto
Dear list, 

 

I have an issue, summed up in the message title. I have two rasters, one
ortophoto and one planning map which show correctly in layer preview in
Geoserver. The problem is that when I try to retrieve them via WMS in QGIS,
I can find them but they won't load. I have the same exact rasters in
another geoserver, and on a different server altogether, and from there I
can retrieve them to QGIS. There is a slight version difference, 2.13.2 vs.
2.13.0. 

 

Another raster is an image pyramid and another geotiff. I guess format is
not the issue, since behavior is shared between them. 

 

WMS is enabled, workspace is enable and WMS is checked as a service. 

 

I have following error messages in log (attached relevant log):

 

2018-11-12 14:18:47,584 ERROR [geoserver.ows] - 

org.geoserver.platform.ServiceException: Error rendering coverage on the
fast path

.

.

.

 

Caused by: org.geoserver.platform.ServiceException:
java.lang.IllegalArgumentException: The reference geometry must be either
Polygon, MultiPolygon, or a polygonal PreparedGeometry

.

.

.

 

Any advice from where to start troubleshooting?

 

Best regards,

 

Ville Koivisto

+35840 701 4283

GIS Expert

Suomen kuntotekniikka Oy



 

2018-11-12 14:18:47,584 ERROR [geoserver.ows] - 
org.geoserver.platform.ServiceException: Error rendering coverage on the fast 
path
at 
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:371)
at 
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:286)
at 
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:141)
at org.geoserver.wms.GetMap.executeInternal(GetMap.java:653)
at org.geoserver.wms.GetMap.run(GetMap.java:285)
at org.geoserver.wms.GetMap.run(GetMap.java:131)
at 
org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:320)
at sun.reflect.GeneratedMethodAccessor658.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at 
org.geoserver.kml.WebMapServiceKmlInterceptor.invoke(WebMapServiceKmlInterceptor.java:38)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at 
org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:62)
at 
org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:36)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at 
org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:74)
at 
org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:55)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at 
org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:55)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy39.getMap(Unknown Source)
at sun.reflect.GeneratedMethodAccessor613.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.geoserver.ows.Dispatcher.execute(Dispatcher.java:867)
at 
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:270)
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.doGet(FrameworkServlet.java:861)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
at 
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at