Re: [Geoserver-users] How to apply different styles for different geometry types in GeometryCollection?

2020-04-07 Thread HSt
Hi,

you need a different filter, which checks the /geometryType/ of your
geometry column, for example:

- filter: ${geometryType(yourgeometrycolumn)='Point'}
  symbolizers:
  - point:
...

- filter: ${geometryType(yourgeometrycolumn)='Polygon'}
  symbolizers:
  - polygon:
...


Cheers,
HSt



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


Re: [Geoserver-users] How to apply different styles for different geometry types in GeometryCollection?

2020-04-07 Thread HSt
Hi,

you need a different filter, which checks the /geometryType/ of your
geometry column, for example:

  - filter: ${geometryType(yourgeometrycolumn) = 'Point'}
symbolizers:
- point:
...
 
  - filter: ${geometryType(yourgeometrycolumn) = 'Polygon'}
symbolizers:
- polygon:
...

Cheers,
HSt



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


Re: [Geoserver-users] GeoServer ignores jpeg format of cascading WMTS

2019-06-24 Thread HSt
Hi Ian,

that's good to know.


Thanks for the response,

HSt



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


___
Geoserver-users mailing list

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

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


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


[Geoserver-users] GeoServer ignores jpeg format of cascading WMTS

2019-06-24 Thread HSt
Hi all,

when cascading a WMTS, GeoServer (2.14.2) ignores the supported format
(jpeg) in the getcapabilites document of the remote WMTS (also GeoServer
2.14.2) and requests png tiles instead by default which produces an 400
error.

 

None of the layers in the getcapabilities document supports png, only
getlegendgraphic. So why is GeoServer ignoring the image format?

This may be related to https://osgeo-org.atlassian.net/browse/GEOS-9042
where the supported CRS of the remote WMTS is ignored. 

2019-06-24 09:47:51,612 ERROR [geotools.tile] - Failed to load image:
http://abc12vm45:8080/geoserver/gwc/service/wmts?request=GetTile=GRID_TH_25832=442=WMTS&*format=image%2Fpng*=RasterWMTS=404=1.0.0=RASTER%3ATestMosaic=GRID_TH_25832%3A6;
java.io.IOException: Connection returned code 400
at
org.geotools.data.wmts.client.WMTSTile.setupInputStream(WMTSTile.java:259)
at
org.geotools.data.wmts.client.WMTSTile.doLoadImageTileImage(WMTSTile.java:232)
at
org.geotools.data.wmts.client.WMTSTile.loadImageTileImage(WMTSTile.java:219)
at org.geotools.tile.Tile.getBufferedImage(Tile.java:163)
at
org.geotools.map.WMTSCoverageReader.getTileImage(WMTSCoverageReader.java:365)
at
org.geotools.map.WMTSCoverageReader.renderTile(WMTSCoverageReader.java:350)
at
org.geotools.map.WMTSCoverageReader.renderTiles(WMTSCoverageReader.java:332)
at 
org.geotools.map.WMTSCoverageReader.getMap(WMTSCoverageReader.java:294)
at org.geotools.map.WMTSCoverageReader.read(WMTSCoverageReader.java:261)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageReaderHelper.readSingleCoverage(GridCoverageReaderHelper.java:637)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageReaderHelper.readCoverage(GridCoverageReaderHelper.java:213)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage(GridCoverageRenderer.java:868)
at
org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.renderImage(GridCoverageRenderer.java:831)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.directRasterRender(RenderedImageMapOutputFormat.java:1036)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:349)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:265)
at
org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:132)
at org.geoserver.wms.GetMap.executeInternal(GetMap.java:720)
at org.geoserver.wms.GetMap.run(GetMap.java:300)
at org.geoserver.wms.GetMap.run(GetMap.java:123)
at
org.geoserver.wms.DefaultWebMapService.getMap(DefaultWebMapService.java:251)
at sun.reflect.GeneratedMethodAccessor492.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:59)
at
org.geoserver.gwc.wms.CacheSeedingWebMapService.invoke(CacheSeedingWebMapService.java:33)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:78)
at
org.geoserver.gwc.wms.CachingWebMapService.invoke(CachingWebMapService.java:52)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:50)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy102.getMap(Unknown Source)
at sun.reflect.GeneratedMethodAccessor449.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:877)
at 
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:264)
at

Re: [Geoserver-users] White pixel (nodata) along footprint

2019-05-24 Thread HSt
Hi,
thank you for your reply. 
I'll guess we are going to live with it for now. Using embedded masks would
mean that we have to duplicate those original tiffs where different
footprints exists. 

Thanks for the input,
HSt



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


___
Geoserver-users mailing list

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

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


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


[Geoserver-users] White pixel (nodata) along footprint

2019-05-20 Thread HSt
Hello all,

we are currently serving many tiff files (ca. 4000 per layer) as ImageMosaic
via WMS and WMTS (scale-dependent). 
These tiffs are heterogeneous (=true), i. e. mix of RGB and RGBI, various
resolutions. Therefore we use coverage view and we only display RGB (channel
selection in .sld).

One image can have two footprints (because the original image is composed of
two different dates, when the photo was taken, each footprint represents one
date, but referring to the same image). We've generated unique IDs in the
shapefile table, where the footprints.properties is pointing to
(footprint_filter = FID = granule.FID --> shapefile for ImageMosaic =
footprint_source). Footprint behavior is set to CUT.

All in all this works perfectly, but along the footprint line within one
image (remember, exact same image is used twice in the ImageMosaic, each
time with a different footprint), white (nodata) pixels appear and only
occur if the footprint lies exactly in the pixel (divides pixels into 50-50
pieces).

<http://osgeo-org.1560.x6.nabble.com/file/t384935/FP01_1.png> 

<http://osgeo-org.1560.x6.nabble.com/file/t384935/Fp2.png> 

<http://osgeo-org.1560.x6.nabble.com/file/t384935/Fp3.png> 


I don’t know if this is a bug. But is there a possibility to adjust the
tolerance of the footprint behavior or another way to avoid these pixels?
Wasn’t there an option that the footprints can cut through pixels instead of
omitting/picking entire pixels? 
Cutting the images beforehand or interpolation (bicubic) are not an option
because the original images should be untouched.

Thanks,
HSt




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