[GeoNode-devel] Native SRS ignored

Alessio Fabiani alessio.fabiani at geo-solutions.it
Fri Sep 22 07:52:02 PDT 2017


GeoNode should store the projection defined into the settings.py

Infact, from your screenshot, the coordinates stored in GeoNode seem to be
inline with the declared CRS.

Regards,

Alessio Fabiani

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==

Ing. Alessio Fabiani

@alfa7691
Founder/Technical Lead


GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39 331 6233686

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.

On Thu, Sep 21, 2017 at 3:45 PM, <amagislist at oicom.com> wrote:

> Looking into the source code for the *"updatelayers" *management command,
> I see that is calls the *gs_slurp() *method from "geoserver/helpers.py".
> At line 473 and following, this method creates a new GeoNode Layer by
> passing it a few values, but NOT the GeoServer layer SRID.
> The default value for the ResourceBase class (ancestor of the Layer
> class), defines the *"srid"* field like this:
>     srid = models.CharField(max_length=255, default='EPSG:4326')
>
> The *gs_slurp() *method than calls the *set_attributes_from_geoserver()*,
> that sets other fields of the newly created Layer instance,
> but it's quite convoluted, so I'm not sure if it sets the sird field or
> not.
> So it's possible that the *"srid"* field of the new Layer is not set at
> all and stays at the dfaule value of 4326...
> Is this a bug, or it's intended?
>
> Thank you very much!!!
>
> Bye
> Paolo
>
>
> Could you check the configuration of the Layer in GeoServer? It is
> possible that it is stored into native CRS but projected by GeoNode into
> the selected CRS.
>
> However there are plans for GeoNode 3.0 to improve such behavior.
>
> Regards,
>
> Alessio Fabiani
>
> == GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information. == Ing. Alessio Fabiani
>
> @alfa7691 Founder/Technical Lead
>
> GeoSolutions S.A.S. Via di Montramito 3/A
> <https://maps.google.com/?q=Via+di+Montramito+3/A%0D+55054+%C2%A0Massarosa&entry=gmail&source=g> 55054
>  Massarosa
> <https://maps.google.com/?q=Via+di+Montramito+3/A%0D+55054+%C2%A0Massarosa&entry=gmail&source=g>
> (LU) Italy phone: +39 0584 962313 <0584%20962313> fax:     +39 0584
> 1660272 <0584%20166%200272> mob:   +39 331 6233686 <331%20623%203686>
> 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.
>
> On Wed, Sep 20, 2017 at 1:16 PM, <amagislist at oicom.com> wrote:
>
>> Hi everybody,
>> this is something I can't understand...
>>
>> I add a PostGIS layer to GeoServer with both native and declared SRS
>> correctly set to EPSG:3003.
>> I then create a new GeoNode Layer upon it (via the manage.py updatelayers
>> command).
>>
>> If I download the GeoNode Layer as a zipped Shape file, data inside it is
>> indeed in native EPSG:3003 SRS,
>> but if I look at Layer's Metadata, the SRS is shown as EPSG:4326.
>>
>> Even looking into the Django Admin page for a Layer, the SRID is shown as
>> set to EPSG:4326,
>> it seems there's no way in GeoNode to see the native SRS of a Leyer... :-o
>>
>> Is this correct, or there's something wrong with my setup?
>> How can I make Users see the native SRS of each layer?
>>
>> Bye
>> Paolo
>>
>>
>> GeoNode <http://geonode.org>
>> *2.6.1 *GeoServer
>>
>> *2.7.4 *
>>
>> _______________________________________________
>> geonode-devel mailing list
>> geonode-devel at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/geonode-devel
>>
>>
>
>
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20170922/51f845ee/attachment-0001.html>


More information about the geonode-devel mailing list