Re: [Geoserver-users] Two questions on CSS styling

2020-04-18 Thread Árni Geirsson
OK thanks Andrea - It is good to know that this is the case, I can then
stop looking :)

Arni


On Sat, 18 Apr 2020 at 17:21, Andrea Aime 
wrote:

> On Sat, Apr 18, 2020 at 6:01 PM Árni Geirsson  wrote:
>
>> 2. I have a line stroke rendered with repeated small png external images.
>> These are, by default, rotated as the line heading changes but can I
>> suppress the rotation and have the images all rendered without any
>> rotation, as for a horizontal line?
>>
>
> There is no option to do that. It could be added... needs to be created as
> a vendor option in SLD, have the renderer interpret and use it, and then
> add it to CSS (since in the end CSS translates down to SLD anyways,
> there is just one rendering engine)
>
> 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] Two questions on CSS styling

2020-04-18 Thread Andrea Aime
On Sat, Apr 18, 2020 at 6:01 PM Árni Geirsson  wrote:

> 2. I have a line stroke rendered with repeated small png external images.
> These are, by default, rotated as the line heading changes but can I
> suppress the rotation and have the images all rendered without any
> rotation, as for a horizontal line?
>

There is no option to do that. It could be added... needs to be created as
a vendor option in SLD, have the renderer interpret and use it, and then
add it to CSS (since in the end CSS translates down to SLD anyways,
there is just one rendering engine)

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] Two questions on CSS styling

2020-04-18 Thread Árni Geirsson
Aha! Thank you so much!

Arni


On Sat, 18 Apr 2020 at 16:58, Vera Green  wrote:

> I can't answer #2 for you but for #1 this is an example I have for
> labeling at different scales which works as you are describing:
>
> /* @title ats_sec_centroid 20k-40k */
> [@sd < 20]
> *{
>   label-anchor: 0.5 0.5;
>   font-family: "Arial";
>   font-fill: #44;
>   font-style: normal;
>   font-weight: bold;
>   halo-radius: 1;
>   halo-color: #FF;
>   [@sd >= 10][@sd < 20] {
> label: [sec];
> font-size: 10;
>   };
>   [@sd >= 25000][@sd < 10] {
> label: [labeltext];
> font-size: 12;
>   };
> }
>
> I think the trick is to put the subsets INSIDE the default definition
> brackets.
> Hope it helps,
> Vera
>
> On Sat, Apr 18, 2020 at 9:54 AM Árni Geirsson  wrote:
>
>> Hello fellow Geoserver users
>> I have two problems with CSS styling that I have not been able to find a
>> solution for:
>>
>> 1. When I apply a simple rule for the basic style and then a scale
>> dependent rule for labeling of the same features, the legend shows two
>> entries. Is there a way to suppress the legend entry for the labeling rule?
>>
>> 2. I have a line stroke rendered with repeated small png external images.
>> These are, by default, rotated as the line heading changes but can I
>> suppress the rotation and have the images all rendered without any
>> rotation, as for a horizontal line?
>>
>> Any hints are highly appreciated.
>>
>> Arni Geirsson
>> ___
>> 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 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] Two questions on CSS styling

2020-04-18 Thread Vera Green
I can't answer #2 for you but for #1 this is an example I have for labeling
at different scales which works as you are describing:

/* @title ats_sec_centroid 20k-40k */
[@sd < 20]
*{
  label-anchor: 0.5 0.5;
  font-family: "Arial";
  font-fill: #44;
  font-style: normal;
  font-weight: bold;
  halo-radius: 1;
  halo-color: #FF;
  [@sd >= 10][@sd < 20] {
label: [sec];
font-size: 10;
  };
  [@sd >= 25000][@sd < 10] {
label: [labeltext];
font-size: 12;
  };
}

I think the trick is to put the subsets INSIDE the default definition
brackets.
Hope it helps,
Vera

On Sat, Apr 18, 2020 at 9:54 AM Árni Geirsson  wrote:

> Hello fellow Geoserver users
> I have two problems with CSS styling that I have not been able to find a
> solution for:
>
> 1. When I apply a simple rule for the basic style and then a scale
> dependent rule for labeling of the same features, the legend shows two
> entries. Is there a way to suppress the legend entry for the labeling rule?
>
> 2. I have a line stroke rendered with repeated small png external images.
> These are, by default, rotated as the line heading changes but can I
> suppress the rotation and have the images all rendered without any
> rotation, as for a horizontal line?
>
> Any hints are highly appreciated.
>
> Arni Geirsson
> ___
> 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 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] Two questions on CSS styling

2020-04-18 Thread Árni Geirsson
Hello fellow Geoserver users
I have two problems with CSS styling that I have not been able to find a
solution for:

1. When I apply a simple rule for the basic style and then a scale
dependent rule for labeling of the same features, the legend shows two
entries. Is there a way to suppress the legend entry for the labeling rule?

2. I have a line stroke rendered with repeated small png external images.
These are, by default, rotated as the line heading changes but can I
suppress the rotation and have the images all rendered without any
rotation, as for a horizontal line?

Any hints are highly appreciated.

Arni Geirsson
___
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] Vector Tile Call

2020-04-18 Thread Andrea Aime
Hi David,
I haven't tried, but believe it's not possible, the vector tile output
format does not seem to take
care of that parameter (by a quick check in the code).
When it was first donated, it did not even account for CQL_FILTER, we had
to add it later...

Pull requests welcomed to add support for that parameter :-)

Cheers
Andrea


On Fri, Apr 17, 2020 at 10:00 PM David Haynes  wrote:

> Thanks,
>
> Is it possible to pass parameters to vector tiles? I would like to create
> a timeseries vector tile layer.
> viewparams=p1:v1;p2:v
>
> On Thu, Apr 16, 2020 at 2:36 AM Andrea Aime 
> wrote:
>
>> HI David,
>> the GWC preview can show vector tiles, and it's based on OpenLayers, so
>> you can probably steal some idea there.
>> You can find it in the "tile layers" menu entry.
>>
>> Cheers
>> Andrea
>>
>>
>> On Thu, Apr 16, 2020 at 5:11 AM David Haynes  wrote:
>>
>>> Hello,
>>>
>>> I'm having an issue calling a Vector Tile layer into my map. I went
>>> through the tutorial here and was able to successfully get a layer on my
>>> geoserver install to view.
>>>
>>> https://docs.geoserver.org/latest/en/user/extensions/vectortiles/tutorial.html
>>>
>>>
>>> Yet when I am trying to do the call in openlayers I can't get it to
>>> render.
>>> My layer is in a workspace 'COVID'
>>>
>>> new VectorTileLayer({
>>> declutter: true,
>>> source: new VectorTileSource({
>>> tilePixelRatio: 1, // oversampling when > 1
>>> tileGrid: createXYZ({ maxZoom: 19 }),
>>> format: new MVT(),
>>> url: 'http://XXX:8080/geoserver/gwc/service/tms/1.0.0/' +
>>> covidLayer +
>>> '@EPSG%3A'+mapProj+'@pbf/{z}/{x}/{-y}.pbf'
>>>
>>> ___
>>> 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.*
>>
>

-- 

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