Hi Morgan,
that's awesome, thank you. Steve, do we have a ticket?
Cheers
Andrea
On Thu, Jun 8, 2017 at 2:57 AM, Morgan Thompson <[email protected]>
wrote:
>
> Hi,
>
> It looks like the logic that was implemented to handle AUTO urn codes
> containing Lat/Lon, such as "urn:ogc:def:crs:OGC:1.3:AUTO42002:180:90"
> (authority code AUTO:42002,180,90) is misinterpreting the
> *urn:x-ogc:def:crs:EPSG* as part of the CRS code. Previously the
> urnParser just took the content after the last colon as the code.
>
> It might be better to catch this in the *toInternalSRS* method in WMS to
> prevent the malformed URN from being passed down. Or if possible, prevent
> the pre-pending of *EPSG: *to the CRS identifier if it is already there.
>
> Would be happy to address this in the next bug stomp.
>
> Cheers,
>
> Morgan Thompson
> Junior Engineer | Boundless
> [email protected]
>
> On Wed, Jun 7, 2017 at 10:44 AM, Andrea Aime <[email protected]
> > wrote:
>
>> Hi Morgan,
>> thoughts?
>>
>> Cheers
>> Andrea
>>
>> On Wed, Jun 7, 2017 at 7:35 PM, sikeoka <[email protected]> wrote:
>>
>>> I think that this warning originated with this commit to
>>> org.geotools.referencing.factory.URN_Parser:
>>> https://github.com/geotools/geotools/commit/a63c0d9ec83e882e
>>> b1b876d909bebe3ab1692913
>>>
>>> For some reason, OpenLayersMapOutputFormat has always added "EPSG:" to
>>> the
>>> beginning of the code:
>>> String code = "EPSG:" + CRS.lookupIdentifier(crs, false);
>>> This creates something like "EPSG:EPSG:4326", which after going through
>>> this
>>> line:
>>> code = WMS.toInternalSRS(code, WMS.version("1.3.0"));
>>> becomes urn:x-ogc:def:crs:EPSG:urn:x-ogc:def:crs:EPSG:4326
>>>
>>> Prior to the linked commit, URN_Parser was able to still determine the
>>> correct code from this, 4326, but after the commit, it thinks the code is
>>> "x-ogc,def,crs,EPSG,4326" which causes the NumberFormatException.
>>>
>>> The result of this method in OpenLayersMapOutputFormat is actually not
>>> used
>>> at all in the OpenLayers 3 output so these warning are pretty harmless
>>> other
>>> than filling the logs.
>>>
>>> Steve Ikeoka
>>>
>>>
>>>
>>> --
>>> View this message in context: http://osgeo-org.1560.x6.nabbl
>>> e.com/GeoServer-2-11-1-OpenLayers-CRS-Warnings-tp5323388p5323397.html
>>> Sent from the GeoServer - User mailing list archive at Nabble.com.
>>>
>>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Geoserver-users mailing list
>>> [email protected]
>>> 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 <+39%200584%20962313>
>> fax: +39 0584 1660272 <+39%200584%20166%200272>
>> mob: +39 339 8844549 <+39%20339%20884%204549>
>>
>> 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.
>>
>> -------------------------------------------------------
>>
>
>
--
==
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.
-------------------------------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users