Hi Andrea,
You were actually right, I was testing against 4326 and not 3857 where the
problem first manifest. Just to confirm that using "&scaleMethod=accurate" in
the wms request does indeed solve the problem.
Many thanks,Corina
On Friday, 22 November 2019, 10:19:58 GMT, Andrea Aime
<[email protected]> wrote:
Hi Corina,you can also open a bug report in the ticket tracker too, so that we
don't forget about it.
CheersAndrea
On Fri, Nov 22, 2019 at 11:15 AM Corina Tudorache <[email protected]> wrote:
Hi Andrea,
Thank you very much for your reply, using scaleMethod definitely gets us closer
to the what we need, but there is still a small difference.
What we found to work, is using this approach:
<ogc:Div>
<ogc:PropertyName>error</ogc:PropertyName>
<ogc:Function name="cos">
<ogc:Function name="toRadians">
<ogc:PropertyName>Lat</ogc:PropertyName>
</ogc:Function>
</ogc:Function>
</ogc:Div>But this means we would need to have the values of
latitude and longitude defined in the shapefile, and we would like to use
directly the geometry field instead.
I can share a few screen shots if needed.
Cheers,
Corina
On Friday, 22 November 2019, 09:10:46 GMT, Andrea Aime
<[email protected]> wrote:
On Thu, Nov 21, 2019 at 8:06 PM Jody Garnett <[email protected]> wrote:
Different projects describe a vastly different shape of the world and have
different distortions of scale (often as you move north south). It looks like
the two projections you describe cover the UK and and a large section of the
northern hemisphere respectfully.
The rescaling is done based on the OGC scale denominator, which has simplified
formulas, in particular, not taking into account the projection local
deformation.On the other side, it can be computed anywhere and it's mandatory
for interoperability (see the SLD specification for the method).
On the other side, the geometries get the full deformation of the projection,
which for the case of 3857 in UK, is already pretty severe (UK area isI believe
3 times bigger than it actually is on web mercator*).
The WMS has an option to force a "true scale" computation, see
https://docs.geoserver.org/latest/en/user/services/wms/vendor.html#scalemethodYou
can add it to your requests and see if it fixes the problem, but I'm not sure
if it affects the scale denominator used for rule activation, or it getsused
all the way through
CheersAndrea
*: you can play with
https://thetruesize.com/#?borders=1~!MTcyMDU3MzE.NzEyNjY1Mw*MzIzMTM4Nzc(MzA0NjI5OQ~!CONTIGUOUS_US*MTAwMjQwNzU.MjUwMjM1MTc(MTc1)MA~!IN*NTI2NDA1MQ.Nzg2MzQyMQ)MQ~!CN*OTkyMTY5Nw.NzMxNDcwNQ(MjI1)Mg~!GB*NjI4OTc.MTYwMTYwOTQ)Mw
, try dragging UK to the equator, where there is almost no deformation
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.==Ing. Andrea Aime @geowolfTechnical LeadGeoSolutions
S.A.S.Via di Montramito 3/A55054 Massarosa (LU)phone: +39 0584 962313fax: +39
0584 1660272mob: +39 339
8844549http://www.geo-solutions.ithttp://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 @geowolfTechnical
LeadGeoSolutions S.A.S.Via di Montramito 3/A55054 Massarosa (LU)phone: +39 0584
962313fax: +39 0584 1660272mob: +39 339
8844549http://www.geo-solutions.ithttp://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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users