Re: [Geoserver-users] Problems with app-schema and srsName

2016-07-01 Thread Ben Caradoc-Davies
Gerhard,

I think that a better solution is to make the changes originally 
proposed by Victor:
https://osgeo-org.atlassian.net/browse/GEOT-3651

Victor and Jody, do you remember this one from 2011?

Jody, did you have some reservations about Victor's patch?

Kind regards,
Ben.

On 01/07/16 16:53, Dünnebeil Gerhard wrote:
> Dear Ben,
>
> yes, this is the same problem. Even the code snippets mentioned there look 
> familiar.
> And yes, what you describe as the fallback scenario is exactly what happens.
>
> Do you think a possible solution would be to provide a CRS for a feature type 
> within the app-schema mapping file?
> If it exists, it will override any setting retrieved from the database.
>
> Of course this would require some changes to the app-schema plugin.
>
>
> best regards
> Gerhard
>
> 
> From: Ben Caradoc-Davies [b...@transient.nz]
> Sent: Friday, July 01, 2016 1:37 AM
> To: Dünnebeil Gerhard; geoserver-users@lists.sourceforge.net
> Cc: katharina.schle...@umweltbundesamt.at
> Subject: Re: [Geoserver-users] Problems with app-schema and srsName
>
> Gerhard,
>
> I think that you might be affected by a known problem in GeoTools in
> which a feature type that does not have a top-level geometry is not
> recognised as having a CRS. See this discussion from 2011 (note
> references to 2015 are from our Jira migration):
>
> [GEOT-3651] Handling of CRS when reprojecting "complex" FeatureCollection
> https://osgeo-org.atlassian.net/browse/GEOT-3651
>
> Although this issue is marked as Fixed, the discussion indicates that it
> is not. I do not know the alternate solution mentioned by Victor.
>
> I think what is happening is that, when the Encoder receives the nested
> feature, it falls back to a best-effort attempt to encode the srsName
> and geometry, but lacks the required information and uses the old URL
> format and its default axis order settings. I suspect that the geometry
> is not reprojected in this case.
>
> Kind regards,
> Ben.
>
>
> On 30/06/16 19:25, Dünnebeil Gerhard wrote:
>> Dear all,
>>
>> I have a problem with the app-schema plugin and the emission of 
>> srsName-attributes for geometries.
>>
>> In some cases the srsName is emitted in the URL form: 
>> http://www.opengis.net/gml/srs/epsg.xml#4326
>> In other cases the URN-Notation is used: "urn:ogc:def:crs:EPSG::4326"
>>
>> After some debugging I nailed this down to the superficial reason that in 
>> one case the CRS has EAST-NORTH orientation (-->URL) while in the other case 
>> the orientation is NORTH-EAST (--> URN).
>>
>> But why? They all come from the same database and are declared equally.
>>
>> After a lot more debugging I found that in the URN case a reprojections 
>> takes place while the URL case does no reprojection at all.
>> Even more digging into the dirt showed me the following:
>>
>> When a URN is emitted, the schema declares the geometry field as a direct 
>> child (ef:geometry) of the target element 
>> (aqd:AQD_SamplingPoint).
>> When a URL is emitted, the schema declares the geometry as a second level 
>> child (sams:shape/gml:Point) of the 
>> target (aqd:AQD_Sample).
>>
>> The even deeper reason seems to be that the routine 
>> org.geotools.feature.type.FeatureTypeImpl.getCoordinateReferenceSystem does 
>> not recursively searches into complex types to find a geometry.
>>
>>
>>
>> Any ideas how to force URN notation?
>>
>>
>> BTW, I use geoserver 2.7.0 with all "officially" bundled libraries.
>>
>>
>>
>> Best regards
>> Gerhard Dünnebeil
>>
>> GERHARD DÜNNEBEIL
>> Secure Information Management
>> Safety & Security Department
>>
>> AIT Austrian Institute of Technology GmbH
>> Donau-City-Straße 1  |  1220 Vienna  |  Austria
>> T +43(0) 50550-3173  |  M +43(0) 664 2351747  |  F +43(0) 50550-4150
>> gerhard.duenneb...@ait.ac.at  |  
>> http://www.ait.ac.at
>>
>> FN: 115980 i HG Wien  |  UID: ATU14703506
>> http://www.ait.ac.at/Email-Disclaimer
>>
>>
>>
>>
>> --
>> Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>> present their vision of the future. This family event has something for
>> everyone, including kids. Get more information and register today.
>> http://sdm.link/attshape
>>
>>
>>
>> ___
>> Geoserver-users mailing list
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
> --
> Ben Caradoc-Davies 
> Director
> Transient Software Limited 
> New Zealand
>

-- 
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park 

Re: [Geoserver-users] Road number labeling difficulties

2016-07-01 Thread Andrea Aime
On Fri, Jul 1, 2016 at 3:17 PM, Kanninen Anssi EXT  wrote:

> Hi Andrea and thank you for the answer!
>
>
>
> The screenshots are from Geoserver layer preview without any tiling
> enabled.
>
> If I use grouping with repeating, it only shows the labels in the longest
> path.
>
> If I add “labelAllGroups”, there’s too much of labels, too close to each
> other.
>

Hum... GeoServer uses JTS to put toghether the line segments into a long
line... normally it works,
when it does not, it's normally and indication that the lines are not
really touching each other,
which makes JTS unable to bring them toghether into a single long line.
Could that be your case?

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

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

---
--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Road number labeling difficulties

2016-07-01 Thread Kanninen Anssi EXT
Hi Andrea and thank you for the answer!

The screenshots are from Geoserver layer preview without any tiling enabled.
If I use grouping with repeating, it only shows the labels in the longest path.
If I add “labelAllGroups”, there’s too much of labels, too close to each other.

Best regards,
Anssi

From: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] On Behalf Of Andrea 
Aime
Sent: 1. heinäkuuta 2016 14:52
To: Kanninen Anssi EXT
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Road number labeling difficulties

Hi,
are there screenshots you're posting from a tiling client? Does the labeling 
work fine if you look at the GeoServer layer preview without tiling enabled?
The solution should be group, group all with an eventual repeat, but if you are 
tiling there is one labelling run per tile, the system is not aware
of what happens in the nearby tiles.
The minGroupDistance option is still there and I see it used in the code.

Cheers
Andrea

On Thu, Jun 30, 2016 at 10:46 AM, Kanninen Anssi EXT 
> wrote:
Hello everybody and greetings from sunny Finland!

First of all, Geoserver is great! I'm amazed how fast it renders layergroups 
with almost 100 layers having different styles.

But I've got some difficulties when labeling roads and zooming the map out.
We've got some long roads with dozens of segments, all having the road number 
as an attribute.
I want the road number labels to be show along the long road with an equals 
distance from each other.

* When I zoom in with just two or three segments visible, the VendorOption 
"repeat" is enough. The labels are displayed nicely along the road 
(sample1.png).
* When I zoom out, I can not label all the segments anymore because the labels 
come too close to each other (sample2.png). So I will add VendorOption "group". 
But it only shows the labels in the longest path and not the labels on the 
other (possible slightly disjoint) segments (sample3.png).
* Then I add "labelAllGroup". But again, I get too much labels because every 
segment will have it (sample4.png).

(The example data is tiger_roads with only Broadway visible and an imaginary 
road number "R11" for all the segments.)

So, how can I display the labels along all the visible road segments, not too 
close or not too far away from each other?

Thank you!

Best regards,
Anssi Kanninen

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users



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

Re: [Geoserver-users] Road number labeling difficulties

2016-07-01 Thread Andrea Aime
Hi,
are there screenshots you're posting from a tiling client? Does the
labeling work fine if you look at the GeoServer layer preview without
tiling enabled?
The solution should be group, group all with an eventual repeat, but if you
are tiling there is one labelling run per tile, the system is not aware
of what happens in the nearby tiles.
The minGroupDistance option is still there and I see it used in the code.

Cheers
Andrea

On Thu, Jun 30, 2016 at 10:46 AM, Kanninen Anssi EXT <
anssi.kanni...@digia.com> wrote:

> Hello everybody and greetings from sunny Finland!
>
> First of all, Geoserver is great! I'm amazed how fast it renders
> layergroups with almost 100 layers having different styles.
>
> But I've got some difficulties when labeling roads and zooming the map out.
> We've got some long roads with dozens of segments, all having the road
> number as an attribute.
> I want the road number labels to be show along the long road with an
> equals distance from each other.
>
> * When I zoom in with just two or three segments visible, the VendorOption
> "repeat" is enough. The labels are displayed nicely along the road
> (sample1.png).
> * When I zoom out, I can not label all the segments anymore because the
> labels come too close to each other (sample2.png). So I will add
> VendorOption "group". But it only shows the labels in the longest path and
> not the labels on the other (possible slightly disjoint) segments
> (sample3.png).
> * Then I add "labelAllGroup". But again, I get too much labels because
> every segment will have it (sample4.png).
>
> (The example data is tiger_roads with only Broadway visible and an
> imaginary road number "R11" for all the segments.)
>
> So, how can I display the labels along all the visible road segments, not
> too close or not too far away from each other?
>
> Thank you!
>
> Best regards,
> Anssi Kanninen
>
>
> --
> Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


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

---
--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.

Re: [Geoserver-users] Road number labeling difficulties

2016-07-01 Thread Kanninen Anssi EXT
We once had minGroupDistance - any idea where it vanished?

-Original Message-
From: Kanninen Anssi EXT [mailto:anssi.kanni...@digia.com] 
Sent: 30. kesäkuuta 2016 12:10
To: 'geoserver-users@lists.sourceforge.net'
Subject: Re: [Geoserver-users] Road number labeling difficulties

This is the style I used. Labeling options are in the bottom:

-8<-8<-8<8<


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:xsi="http://www.w3.org/2001/XMLSchema-instance;>
area landmarks 
  

  Feature


  
NAME
Broadway
  
  


  

  #66


  2

  

  
  
  

  
NAME
Broadway
  
  


  

  #66


  7

  

  


  Feature
  

  
NAME
Broadway
  
  


  

  #FF


  4

  

   
   
  

  
NAME
Broadway
  
  


  
R11
  
  
  
Times New Roman
Normal
14
bold
  
  
  


  
  

  2


  #FF
  0.85 


  
  
  
#00
  
  
  100
  true
  true
  

  


  
  



8<-8<-8<-8<-8<-


-Original Message-
From: Kanninen Anssi EXT [mailto:anssi.kanni...@digia.com] 
Sent: 30. kesäkuuta 2016 11:47
To: 'geoserver-users@lists.sourceforge.net'
Subject: [Geoserver-users] Road number labeling difficulties

Hello everybody and greetings from sunny Finland!

First of all, Geoserver is great! I'm amazed how fast it renders layergroups 
with almost 100 layers having different styles.

But I've got some difficulties when labeling roads and zooming the map out.
We've got some long roads with dozens of segments, all having the road number 
as an attribute.
I want the road number labels to be show along the long road with an equals 
distance from each other.

* When I zoom in with just two or three segments visible, the VendorOption 
"repeat" is enough. The labels are displayed nicely along the road 
(sample1.png).
* When I zoom out, I can not label all the segments anymore because the labels 
come too close to each other (sample2.png). So I will add VendorOption "group". 
But it only shows the labels in the longest path and not the labels on the 
other (possible slightly disjoint) segments (sample3.png).
* Then I add "labelAllGroup". But again, I get too much labels because every 
segment will have it (sample4.png).

(The example data is tiger_roads with only Broadway visible and an imaginary 
road number "R11" for all the segments.)

So, how can I display the labels along all the visible road segments, not too 
close or not too far away from each other?

Thank you!

Best regards,
Anssi Kanninen

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] How to have a parameter draw a circle in the map/layer?

2016-07-01 Thread Russ Amazon UK
I think this is more of an OpenLayers question which is why nobody has 
currently replied.

Russ

> On 30 Jun 2016, at 20:36, bengalliboy  wrote:
> 
> I have not got any response to this. Can someone please direct me to what I
> am trying to do?  Thanks in advance.
> 
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1560.x6.nabble.com/How-to-have-a-parameter-draw-a-circle-in-the-map-layer-tp5273192p5274238.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
> 
> --
> Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] User Manual

2016-07-01 Thread Brad Hards
> thanks Brad.  unless i missed the obvious, it may be useful to link to
> it from the the  page.
docs.geoserver.org is usually a good option - better handled by search
engines than PDF, and available as a HTML zipfile if needed.

Brad



--
Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users