[Geoserver-users] WPS GridCoverage2D processes and NoData values

2018-11-14 Thread ocox via Geoserver-users
Hi,

I'm working on a simple WPS process that subtracts one GridCoverage2D from
another (I hope this code shows up ok).  But I can't seem to work out how to
have the SubtractFromConst and Add operations respect the NoData values in
the input GridCoverage2D.  I've looked through the Javadocs for the
processors, but can't seem to find anything online.  Can anyone suggest
anything I might be missing?  

Thanks,
Owen

 public GridCoverage2D execute(
@DescribeParameter(name = "coverageA", description = "First
input raster")
GridCoverage2D coverageA,
@DescribeParameter(name = "coverageB", description = "Second
input raster")
GridCoverage2D coverageB,
ProgressListener progressListener)
throws ProcessException {


BaseCoverageAlgebraProcess.checkCompatibleCoverages(coverageA,
coverageB);

final double[] constants = {0};

final ParameterValueGroup subParam =
PROCESSOR.getOperation("SubtractFromConst").getParameters();
 
subParam.parameter("source").setValue(coverageB);
subParam.parameter("constants").setValue(constants);

final ParameterValueGroup addParam =
PROCESSOR.getOperation("Add").getParameters();
addParam.parameter("source0").setValue(coverageA);
addParam.parameter("source1").setValue((GridCoverage2D)
PROCESSOR.doOperation(subParam));

return (GridCoverage2D) PROCESSOR.doOperation(addParam);
}




--
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, App-Schema and Hale Studio

2018-11-14 Thread Jonas Nygaard Pedersen
Hi Nuno, list,
Thanks for the feedback. It is nice to know that it can’t be done with Hale 
Studio as that narrows down the path by which I should work down.
But I’m unsure as how to do this using a mapping file.

I have tried to manually edit the mapping file that was generated by Hale so 
that plu:member mapping looks like this:


SpatialPlan-9bda274b-ea2e-4840-9660-39ed7564ac61
dataStore
plu_spatialplan
plu:SpatialPlan


plu:member

inspireid_localid
 plu_spatialplan_offdoc
fk_spatialplan



xlink:href
member_href



But I get an error when  sending a getfeature request:
Error applying mapping with targetAttribute plu:member Could not find working 
property accessor for attribute (offdoc_href) in object
As if the join doesn’t work.
Maybe this is not the right way of doing it, but I can’t decipher from the 
documentation how it should be done.

I would like to end up with something that looks like this (where the 
interesting part is the plu:member target in the bottom):


http://inspire.ec.europa.eu/schemas/net/4.0; 
xmlns:sc="http://www.interactive-instruments.de/ShapeChange/AppInfo; 
xmlns:lunom="http://inspire.ec.europa.eu/schemas/lunom/4.0; 
xmlns:gco="http://www.isotc211.org/2005/gco; 
xmlns:cp="http://inspire.ec.europa.eu/schemas/cp/4.0; 
xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty; 
xmlns:gml="http://www.opengis.net/gml/3.2; 
xmlns:ad="http://inspire.ec.europa.eu/schemas/ad/4.0; 
xmlns:au="http://inspire.ec.europa.eu/schemas/au/4.0; 
xmlns:base2="http://inspire.ec.europa.eu/schemas/base2/2.0; 
xmlns:plu="http://inspire.ec.europa.eu/schemas/plu/4.0; 
xmlns:ns1="http://www.w3.org/1999/xhtml; 
xmlns:tn="http://inspire.ec.europa.eu/schemas/tn/4.0; 
xmlns:base="http://inspire.ec.europa.eu/schemas/base/3.3; 
xmlns:gmlcov="http://www.opengis.net/gmlcov/1.0; 
xmlns:gn="http://inspire.ec.europa.eu/schemas/gn/4.0; 
xmlns:gmd="http://www.isotc211.org/2005/gmd; 
xmlns:gsr="http://www.isotc211.org/2005/gsr; 
xmlns:gts="http://www.isotc211.org/2005/gts; 
xmlns:bu-base="http://inspire.ec.europa.eu/schemas/bu-base/4.0; 
xmlns:xlink="http://www.w3.org/1999/xlink; 
xmlns:gss="http://www.isotc211.org/2005/gss; 
xmlns:swe="http://www.opengis.net/swe/2.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xmlns:wfs="http://www.opengis.net/wfs/2.0; 
xsi:schemaLocation="http://inspire.ec.europa.eu/schemas/plu/4.0 
http://inspire.ec.europa.eu/schemas/plu/4.0/PlannedLandUse.xsd 
http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd; 
numberMatched="5" numberReturned="5" timeStamp="2018-11-09T15:05:18.847+01:00">
  

  http://inspire.ec.europa.eu/ids;>bddfc20f-4ad4-45da-853b-87f38e8ea0c1
  

  bddfc20f-4ad4-45da-853b-87f38e8ea0c1
  
https://envi.data.gov.dk/1b33054a-b7a3-4c7e-b68c-3aa4f92b7997

  
  
…
  
  2018-10-04T13:57:01Z
  Regulation on National park Thy
  http://inspire.ec.europa.eu/codelist/LevelOfSpatialPlanValue/national"/>
  
  2016-06-29+02:00
  
  National park Thy
  http://to.be.decided/PlanTypeNameValue/RegulationOnNationalParks"/>
  http://inspire.ec.europa.eu/codelist/ProcessStepGeneralValue/legalForce"/>
  
  

  2016-06-28T22:00:00Z
  Legal Force Date

  
  https://envi.data.gov.dk/1b33054a-b7a3-4c7e-b68c-3aa4f92b7997#CK000808"/>
  https://envi.data.gov.dk/1b33054a-b7a3-4c7e-b68c-3aa4f92b7997#c3faeacc-7435-4f48-9e68-487da6778d46"/>
  https://envi.data.gov.dk/1b33054a-b7a3-4c7e-b68c-3aa4f92b7997#4c0e64e1-a320-45f8-a322-e8034932cf44"/>
  https://envi.data.gov.dk/1b33054a-b7a3-4c7e-b68c-3aa4f92b7997#41ba0023-42a5-46e2-b972-1b286e4cfda8"/>

  
Fra: Nuno Oliveira 
Sendt: 13. november 2018 17:26
Til: Jonas Nygaard Pedersen ; 
'geoserver-users@lists.sourceforge.net' 
Emne: Re: [Geoserver-users] Geoserver, App-Schema and Hale Studio

Hi,

Quick answer: you can achieve what you want with GeoServer App-Schema:


  *   
https://docs.geoserver.org/latest/en/user/data/app-schema/mapping-file.html#attributes-with-cardinality-1-n
  *   
https://docs.geoserver.org/latest/en/user/data/app-schema/feature-chaining.html#multi-valued-properties-by-reference-xlink-href

... but I don't think you can do it with HALE integration. I will double check 
what is going on ... not sure when I will have time to do it.

Hope it helps,
Nuno Oliveira

On Tue, 2018-11-13 at 15:24 +, Jonas Nygaard Pedersen wrote:
Hi list,

I’m trying to do a transformation of two tables from Postgres (see below) to a 
target XML schema 
(http://inspire.ec.europa.eu/schemas/plu/4.0/PlannedLandUse.xsd).
Most of my data is in one 

Re: [Geoserver-users] Geoserver Print

2018-11-14 Thread Pedro Henriques
Yes, but I had to make changes to the webgis.
For some reason it failed to be able to generate functions, whenever it was
invoked through GET.

I changed the function to:






















































*var spec_html = {"outputFilename": "Plant_SIG" +
seconds, "layout": layout, "srs": "EPSG:
3763", "units": "m", "dpi": 300, "applicant":
applicant, "title": plant, "nif": nif, "freguesia":
parish, "locality": locality, "purpose" means:
purpose, "source": source, "layers":
[{"baseURL":
"http://websig.cm-ourem.pt/geoserver/wms
","opacity":
1.0,"singleTile": false,"type":
"WMS","layers": [layer],"format": "image /
png"},{"type":
"Vector","styles": {"":
{"fill": false,"fillColor":
"# FF","stroke-width":
"3","strokeWidth":
3,"strokeColor": "#
FF","fillOpacity":
0.0}},"geoJson":
JSON.parse (results_geojson)} ], "pages":
[ {"center": MapCenter,"scale":
scale,"rotation": 0 } ]};var
json_post = (JSON.stringify (spec_html));$ .ajax ({url:
'http://websig.cm-ourem.pt/geoserver/pdf/create.json?url=http://websig.cm-ourem.pt/geoserver/pdf/create.json
',
   type:
'post',date: {spec: json_post},success: function (data,
textStatus, jQxhr) {window.location.href =
data.getURL;}});*

And now, works well

Cumprimentos
*Pedro Henriques*


Mauro Bartolomeoli  escreveu no dia
quarta, 14/11/2018 à(s) 11:51:

> Hi Pedro,
> I tried to follow your link, and I get a correct PDF.
> Can you confirm it is working also for you now?
>
>
>
> Il giorno mer 14 nov 2018 alle ore 11:56 Pedro Henriques <
> henriques.pedro...@gmail.com> ha scritto:
>
>> Hello,
>>
>> I have installed geoserver 2.13 in Ubuntu server 17.10, and suddenly the
>> print requests stopped working.
>> Through the url http://websig.cm-ourem.pt/geoserver/pdf/info.json, all
>> settings in the config.yaml file appear certain, however, whenever the
>> request is made to generate pdf, it does not work .
>> This happened from one day to the next without any change. Someone with
>> the same problem?
>>
>> an example of the request to generate pdf is: 
>> http://websig.cm-ourem.pt/geoserver/pdf/print.pdf?spec={%22outputFilename%22:%22Planta_SIG154219187.7607%22,%22layout%22:%
>>
>> 20A4_legend,%
>> 22dpi% 22: 300,% 22title% 22:% 22PDM% 20-% 20Request% 22,% 22Requireer%
>> 22:% 22% 22,% 22nif% 22:% 22% 22% 22% 22% 22% 22% 22% 22% 22% 22% 22% 22%
>> 22% 22PDM% 20-% 20Resolution% 20 (CMO,% 202002)% 20 |% 20CAOP% 202014% 20
>> (DGT,% 202014)% 20 |% 20SCN% 2010K% 20 (DGT / IACT,% 20Ed.% 202005)% 22,%
>> 22srs% 22:% 20% 22EPSG: 3763% 22,% 20% 22units % 22:% 20% 22m% 22% 20,%
>> 

[Geoserver-users] Encrypted passowrd in create user REST API

2018-11-14 Thread Nanaso via Geoserver-users
Hi,
In Create User REST API, how can I pass the password not in plain-text?
Currently I'm using the following POST request to URL:
[http://localhost:8080/geoserver/rest/security/usergroup/users/](http://localhost:6256/geoserver/rest/security/usergroup/users/)
With request body:
{
  "org.geoserver.rest.security.xml.JaxbUser":{
 "userName": "test",
 "password": "test",
 "enabled": true
  }
}

I don't want to pass the password in plain text, is there any solution?

Regards,
Nanaso___
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 Print

2018-11-14 Thread Pedro Henriques
Hello,

I have installed geoserver 2.13 in Ubuntu server 17.10, and suddenly the
print requests stopped working.
Through the url http://websig.cm-ourem.pt/geoserver/pdf/info.json, all
settings in the config.yaml file appear certain, however, whenever the
request is made to generate pdf, it does not work .
This happened from one day to the next without any change. Someone with the
same problem?

an example of the request to generate pdf is:
http://websig.cm-ourem.pt/geoserver/pdf/print.pdf?spec={%22outputFilename%22:%22Planta_SIG154219187.7607%22,%22layout%22:%
20A4_legend,%
22dpi% 22: 300,% 22title% 22:% 22PDM% 20-% 20Request% 22,% 22Requireer%
22:% 22% 22,% 22nif% 22:% 22% 22% 22% 22% 22% 22% 22% 22% 22% 22% 22% 22%
22% 22PDM% 20-% 20Resolution% 20 (CMO,% 202002)% 20 |% 20CAOP% 202014% 20
(DGT,% 202014)% 20 |% 20SCN% 2010K% 20 (DGT / IACT,% 20Ed.% 202005)% 22,%
22srs% 22:% 20% 22EPSG: 3763% 22,% 20% 22units % 22:% 20% 22m% 22% 20,%
22layers% 22: [{type:% 22WMS% 22, format:% 22image / png% 22, layers: [%
22Plan_PDM_Ordenamento% 22],% 20baseURL:% 22http:
//websig.cm-ourem.pt/geoserver/wms%22,styles:[%22%22],%20customParams%20:{BUFFER:0,TRANSPARENT:true}},%7Btype%3A%22Vector%22%
2Cstyles% 3A% 7B% 22% 22% 3A% 7Bfill% 3A% 20false% 2C% 20fillColor% 3A% 22%
23FF% 22% 2CstrokeWidth% 3A% 203% 2C% 20strokeColor% 3A% 20% 22%
23FF% 22% 2CfillOpacity% 3A% 200% 7D% 7D% 2CgeoJson% 3A% 7B% 22type%
22% 3A% 22FeatureCollec (%) 22% 22% 20% 20% 20% 20% 20% 22% 20% 22% 20% 20%
20% 22center% 22:% 20 [-36866.92670186,2200.51984808], % 22scale%
22:% 2025000,% 22rotation% 22:% 200,% 20}],% 22legends% 22% 20:% 20 [%
22name% 22% 20:% 20% 22% 22% 22classes% 22 % 20:% 20 [% 20% 22name% 22%
20:% 20% 22% 22% 20% 22iconAfterName% 22:% 20true,% 22icon% 22% 20:% 20%
20% 22http: // websig .cm-ourem.pt / geoserver / wms? version = 1.3.0%
26TRANSPARENT = TRUE% 26SERVICE = WMS% 26REQUEST = GetLegendGraphic%
26EXCEPTIONS = application / vnd.ogc.se_xml% 26LAYER =
Planta_PDM_Ordenamento% 26FORMAT = image / png% 26LEGEND_OPTIONS =
forceLabels% 3Aon% 3BfontName% 3DHelvetica% 3BfontSize% 3A10% 3Bdpi% 3A300%
26MODE = legendicon% 22}]}]}]

[Geoserver-users] X-Frame-Options

2018-11-14 Thread Arnaud L.

Hi list !

As per the documentation here : 
https://docs.geoserver.org/latest/en/user/production/config.html#x-frame-options-policy
I have tried to disable the X-Frame-Options in web.xml (using Apache 
Tomcat 9.0), but no success. Is this the correct syntax ?



  xFrameOptionsFilter

org.geoserver.filters.XFrameOptionsFilter
  
geoserver.xframe.shouldSetPolicy
false
  



Thanks a lot !

Cheers

--
Arnaud


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

2018-11-14 Thread Mauro Bartolomeoli
Hi Pedro,
I tried to follow your link, and I get a correct PDF.
Can you confirm it is working also for you now?



Il giorno mer 14 nov 2018 alle ore 11:56 Pedro Henriques <
henriques.pedro...@gmail.com> ha scritto:

> Hello,
>
> I have installed geoserver 2.13 in Ubuntu server 17.10, and suddenly the
> print requests stopped working.
> Through the url http://websig.cm-ourem.pt/geoserver/pdf/info.json, all
> settings in the config.yaml file appear certain, however, whenever the
> request is made to generate pdf, it does not work .
> This happened from one day to the next without any change. Someone with
> the same problem?
>
> an example of the request to generate pdf is: 
> http://websig.cm-ourem.pt/geoserver/pdf/print.pdf?spec={%22outputFilename%22:%22Planta_SIG154219187.7607%22,%22layout%22:%
>
> 20A4_legend,%
> 22dpi% 22: 300,% 22title% 22:% 22PDM% 20-% 20Request% 22,% 22Requireer%
> 22:% 22% 22,% 22nif% 22:% 22% 22% 22% 22% 22% 22% 22% 22% 22% 22% 22% 22%
> 22% 22PDM% 20-% 20Resolution% 20 (CMO,% 202002)% 20 |% 20CAOP% 202014% 20
> (DGT,% 202014)% 20 |% 20SCN% 2010K% 20 (DGT / IACT,% 20Ed.% 202005)% 22,%
> 22srs% 22:% 20% 22EPSG: 3763% 22,% 20% 22units % 22:% 20% 22m% 22% 20,%
> 22layers% 22: [{type:% 22WMS% 22, format:% 22image / png% 22, layers: [%
> 22Plan_PDM_Ordenamento% 22],% 20baseURL:% 22http:
> //websig.cm-ourem.pt/geoserver/wms%22,styles:[%22%22],%20customParams%20:{BUFFER:0,TRANSPARENT:true}},%7Btype%3A%22Vector%22%
> 2Cstyles% 3A% 7B% 22% 22% 3A% 7Bfill% 3A% 20false% 2C% 20fillColor% 3A% 22%
> 23FF% 22% 2CstrokeWidth% 3A% 203% 2C% 20strokeColor% 3A% 20% 22%
> 23FF% 22% 2CfillOpacity% 3A% 200% 7D% 7D% 2CgeoJson% 3A% 7B% 22type%
> 22% 3A% 22FeatureCollec (%) 22% 22% 20% 20% 20% 20% 20% 22% 20% 22% 20% 20%
> 20% 22center% 22:% 20 [-36866.92670186,2200.51984808], % 22scale%
> 22:% 2025000,% 22rotation% 22:% 200,% 20}],% 22legends% 22% 20:% 20 [%
> 22name% 22% 20:% 20% 22% 22% 22classes% 22 % 20:% 20 [% 20% 22name% 22%
> 20:% 20% 22% 22% 20% 22iconAfterName% 22:% 20true,% 22icon% 22% 20:% 20%
> 20% 22http: // websig .cm-ourem.pt / geoserver / wms? version = 1.3.0%
> 26TRANSPARENT = TRUE% 26SERVICE = WMS% 26REQUEST = GetLegendGraphic%
> 26EXCEPTIONS = application / vnd.ogc.se_xml% 26LAYER =
> Planta_PDM_Ordenamento% 26FORMAT = image / png% 26LEGEND_OPTIONS =
> forceLabels% 3Aon% 3BfontName% 3DHelvetica% 3BfontSize% 3A10% 3Bdpi% 3A300%
> 26MODE = legendicon% 22}]}]}]
> 

[Geoserver-users] Geoserver Print

2018-11-14 Thread Pedro Henriques
 Hello,

I have installed geoserver 2.13 in Ubuntu server 17.10, and suddenly the
print requests stopped working.
Through the url http://websig.cm-ourem.pt/geoserver/pdf/info.json, all
settings in the config.yaml file appear certain, however, whenever the
request is made to generate pdf, it does not work .
This happened from one day to the next without any change. Someone with the
same problem?

an example of the request to generate pdf is:
http://websig.cm-ourem.pt/geoserver/pdf/print.pdf?spec={%22outputFilename%22:%22Planta_SIG154219187.7607%22,%22layout%22:%
20A4_legend,%
22dpi% 22: 300,% 22title% 22:% 22PDM% 20-% 20Request% 22,% 22Requireer%
22:% 22% 22,% 22nif% 22:% 22% 22% 22% 22% 22% 22% 22% 22% 22% 22% 22% 22%
22% 22PDM% 20-% 20Resolution% 20 (CMO,% 202002)% 20 |% 20CAOP% 202014% 20
(DGT,% 202014)% 20 |% 20SCN% 2010K% 20 (DGT / IACT,% 20Ed.% 202005)% 22,%
22srs% 22:% 20% 22EPSG: 3763% 22,% 20% 22units % 22:% 20% 22m% 22% 20,%
22layers% 22: [{type:% 22WMS% 22, format:% 22image / png% 22, layers: [%
22Plan_PDM_Ordenamento% 22],% 20baseURL:% 22http:
//websig.cm-ourem.pt/geoserver/wms%22,styles:[%22%22],%20customParams%20:{BUFFER:0,TRANSPARENT:true}},%7Btype%3A%22Vector%22%
2Cstyles% 3A% 7B% 22% 22% 3A% 7Bfill% 3A% 20false% 2C% 20fillColor% 3A% 22%
23FF% 22% 2CstrokeWidth% 3A% 203% 2C% 20strokeColor% 3A% 20% 22%
23FF% 22% 2CfillOpacity% 3A% 200% 7D% 7D% 2CgeoJson% 3A% 7B% 22type%
22% 3A% 22FeatureCollec (%) 22% 22% 20% 20% 20% 20% 20% 22% 20% 22% 20% 20%
20% 22center% 22:% 20 [-36866.92670186,2200.51984808], % 22scale%
22:% 2025000,% 22rotation% 22:% 200,% 20}],% 22legends% 22% 20:% 20 [%
22name% 22% 20:% 20% 22% 22% 22classes% 22 % 20:% 20 [% 20% 22name% 22%
20:% 20% 22% 22% 20% 22iconAfterName% 22:% 20true,% 22icon% 22% 20:% 20%
20% 22http: // websig .cm-ourem.pt / geoserver / wms? version = 1.3.0%
26TRANSPARENT = TRUE% 26SERVICE = WMS% 26REQUEST = GetLegendGraphic%
26EXCEPTIONS = application / vnd.ogc.se_xml% 26LAYER =
Planta_PDM_Ordenamento% 26FORMAT = image / png% 26LEGEND_OPTIONS =
forceLabels% 3Aon% 3BfontName% 3DHelvetica% 3BfontSize% 3A10% 3Bdpi% 3A300%
26MODE = legendicon% 22}]}]}]

Re: [Geoserver-users] Make hole in line to draw label

2018-11-14 Thread Arnaud L.

Le 14/11/2018 à 10:27, Andrea Aime a écrit :
Labels are drawn last, on top of everything, so there is no possibility 
to composite them at the moment.
That's another change that might work, but it plays badly with priority 
support and conflict resolution
(both require labels to be accumulated and handled at the end), so it's 
not a trivial change to implement
(and it's basically how "holes" in lines would have to be implemented 
anyways)


OK, thanks for clarifying this.
On this subject, allowing some textsymbolizers to be taken out of the 
priority/conflict resolution pipeline would also solve some other 
problems (drawing geometries on top of labels being the most obvious one).
i.e. having something like an x-textasgeometry vendor option to take a 
particular feature out of the labels pipeline and simply be drawn with 
no conflict resolution just like any other feature.


Anyway, thanks for all your answers !

Cheers
--
Arnaud


___
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] Make hole in line to draw label

2018-11-14 Thread Andrea Aime
On Wed, Nov 14, 2018 at 10:24 AM Arnaud L.  wrote:

> Yes I know, it's only an example I'm still fine tuning this particular
> style (you can see a very readable black label in the bottom left of the
> picture).
>
> What about compositing with labels ? How does one achieve this, when
> labels are supposedly drawn last ?
>

Labels are drawn last, on top of everything, so there is no possibility to
composite them at the moment.
That's another change that might work, but it plays badly with priority
support and conflict resolution
(both require labels to be accumulated and handled at the end), so it's not
a trivial change to implement
(and it's basically how "holes" in lines would have to be implemented
anyways)

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


Re: [Geoserver-users] Make hole in line to draw label

2018-11-14 Thread Arnaud L.

Le 14/11/2018 à 10:18, Andrea Aime a écrit :
There is no facility to add gaps around labels, but if someone were to 
develop or sponsor it,

it would be a welcomed addition.


I'd be happy to help on this topic as well as the YSLD one (see, I got 
the message ;D), but unfortunately my Java knowledge is way too basic to 
even think about contributing.



The halo is not working also because it has little contrast with the 
label itself,
it's white vs light gray. If the label was darker, it would be readable 
no matter what the
background is. To me the label is not that readable on the white 
background either.


Yes I know, it's only an example I'm still fine tuning this particular 
style (you can see a very readable black label in the bottom left of the 
picture).


What about compositing with labels ? How does one achieve this, when 
labels are supposedly drawn last ?


Cheers

--
Arnaud


___
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] Make hole in line to draw label

2018-11-14 Thread Andrea Aime
On Wed, Nov 14, 2018 at 10:12 AM Arnaud L.  wrote:

> Hi list !
>
> I'd like to label a line with a text in follow-line positionning.
> My problem is that with this simple style the label is not very readable
> because it is "stroked" by the line. So I'd like to make a hole (a gap),
>   in the line at the place where the label will be drawn.
>

There is no facility to add gaps around labels, but if someone were to
develop or sponsor it,
it would be a welcomed addition.


> I tried with a halo but it does not work well in my case because I have
> different background colors, and the halo has a predetermined color.


The halo is not working also because it has little contrast with the label
itself,
it's white vs light gray. If the label was darker, it would be readable no
matter what the
background is. To me the label is not that readable on the white background
either.

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


Re: [Geoserver-users] SLD styling in production environment

2018-11-14 Thread Johannes Weskamm
Hi,

As far as i know, QGIS Style and Mapbox Style parsing is going to be
implemented next.

CSS and YSLD are missing, but pull request are welcome! :-)


Greetings,

Johannes



Am 09.11.2018 um 09:05 schrieb Arnaud L.:
> Le 08/11/2018 à 17:34, Johannes Weskamm a écrit :
>> Just want to add another option for a simple, what you see is what you
>> get SLD-editor:
>>
>> Demo: https://terrestris.github.io/geostyler/
>>
>> Code and documentation: https://github.com/terrestris/geostyler
>>
>> Introduction:
>> https://www.terrestris.de/en/2018/08/06/das-projekt-geostyler/
>>
>> News: https://www.terrestris.de/en/2018/09/12/neues-vom-geostyler/
>>
>>
>> This project is still a work in progress, but it think its already
>> usable!
>
> Very nice project !
> Are there by chance any plans for YSLD/CSS formats ?
>
>
> Cheers
>
> -- 
> Arnaud



___
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] Make hole in line to draw label

2018-11-14 Thread Arnaud L.

Hi list !

I'd like to label a line with a text in follow-line positionning.
My problem is that with this simple style the label is not very readable 
because it is "stroked" by the line. So I'd like to make a hole (a gap), 
 in the line at the place where the label will be drawn.
I tried with a halo but it does not work well in my case because I have 
different background colors, and the halo has a predetermined color. So 
on white backgrounds a white halo works, but on blue background it does not.


See here for a concrete example : https://i.imgur.com/39PQDX2.png

Could anyone suggest me another way to achive this ?

Thanks a lot

Regards

--
Arnaud


___
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] sortByGroup in YSLD error

2018-11-14 Thread Andrea Aime
On Fri, Oct 26, 2018 at 10:30 AM Arnaud L.  wrote:

> Why are the YSLD examples gone ? It looks like they were replaced by
> CSS. Did I make a bad choice with YSLD ?
>

Hi,
I've waited some time to answer this one to allow others to chime in, but
it did not happen.
Full disclosure, I am the maintainer of the CSS module and dislike YAML in
any form and shape,
so if you're wondering about my answer being biased, well, it probably is.
Up to you to decide whether to ignore it, or not :-p

Let's have a look at some factual bits:

   - The YSLD module is supposedly maintained, but you'll find no one of
   the people involved with it answering questions about it on this list (at
   least, not recently, I did not look that far back)
   - The language module history shows that most of the changes have been
   made in the last two years have been done as a side effect of some other
   change
   - There are pull requests made against the module that are months old,
   and being ignored, see https://github.com/geotools/geotools/pull/2076 ,
   although there are also some being looked at,
   https://github.com/geotools/geotools/pull/2137

The module did not get replaced by CSS, if anything, it tried to play the
opposite game (being the replacement for CSS), but without an active
maintainership, it looks like it's falling a bit on the sidelines. One
could also say that the code is "done", which would be at least partially
fair (not fully, as the rendering engine changes, the authors should keep
up with it), however this is not addressing the lack of user support.

That said, one of the nice things about open source is that anyone
interested in the future of the module can become maintainer, that is:

   - Answer questions about it on the lists (geotools and geoserver ones)
   - Look at the tickets and try to solve some (no expectation of ETA about
   them, more like "do something when you have time", but without having years
   in between of course)
   - Review pull requests about it, help keep the module working in face of
   large codebase changes, assist other developers trying to figure out how
   the module works

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