<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>Hi Hennig,</div><div><br></div><div>thanks for your reply. attribute_set was what I was looking for.</div><div>Guess I was blind ;))</div><div><br></div><div>Thanks!</div><div><br></div><div>Toni</div>
<div><br><blockquote type="cite"><div>Am 13.11.2023 um 21:00 schrieb geonode-devel-request@lists.osgeo.org:</div><br class="Apple-interchange-newline"><div>Send geonode-devel mailing list submissions to<br><span class="Apple-tab-span" style="white-space:pre">       </span>geonode-devel@lists.osgeo.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br><span class="Apple-tab-span" style="white-space:pre">        </span>https://lists.osgeo.org/mailman/listinfo/geonode-devel<br>or, via email, send a message with subject or body 'help' to<br><span class="Apple-tab-span" style="white-space:pre">      </span>geonode-devel-request@lists.osgeo.org<br><br>You can reach the person managing the list at<br><span class="Apple-tab-span" style="white-space:pre">    </span>geonode-devel-owner@lists.osgeo.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of geonode-devel digest..."<br>Today's Topics:<br><br>   1. Re: Are visible attributes of a datasets available by API?<br>      (Henning Bredel)<br><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);"><b>Von: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;">Henning Bredel <h.bredel@52north.org><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);"><b>Betreff: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;"><b>Aw: [GeoNode-devel] Are visible attributes of a datasets available by API?</b><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);"><b>Datum: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;">13. November 2023 um 09:36:27 MEZ<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);"><b>An: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;">geonode-devel@lists.osgeo.org<br></span></div><br><br>TBH I do not know how feature info template and the attribute_set of a dataset corresponds in detail. However, /api/v2 includes the attributes via attribute_set array which were formally available as layer_details via the feature catalogue (Django template).<br><br>I assume you are setting visibility of attributes in the GeoServer?<br><br>Best<br><br>  Henning<br><br>On 08.11.23 21:21, Toni Schönbuchner via geonode-devel wrote:<br><blockquote type="cite">Thanks Henning,<br>But this only exposes the html feature info template, right?<br>https://github.com/GeoNode/geonode/blob/96d72df6fa3f216e9f40ed33472e82048db8b06a/geonode/layers/api/serializers.py#L220 <https://github.com/GeoNode/geonode/blob/96d72df6fa3f216e9f40ed33472e82048db8b06a/geonode/layers/api/serializers.py#L220><br>I would search for a json representation of the visible attributes a User has chosen for a dataset<br>F.e. with:<br>https://stable.demo.geonode.org/api/datasets/8620/ <https://stable.demo.geonode.org/api/datasets/8620/><br>Best regards<br>Toni<br>-----------------------------------------------<br>CSGIS<br>-----------------------------------------------<br>Spinnereistraße 7<br>Halle 18 04179 Leipzig<br>-----------------------------------------------<br>Webhttps://csgis.de<br>-----------------------------------------------<br>Hinweis gemäß § 33 BDSG<br>Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den<br>Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich<br>erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht<br>von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung,<br>Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.<br><blockquote type="cite">Am 08.11.2023 um 21:00 schrieb geonode-devel-request@lists.osgeo.org:<br><br>Send geonode-devel mailing list submissions to<br>geonode-devel@lists.osgeo.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>https://lists.osgeo.org/mailman/listinfo/geonode-devel<br>or, via email, send a message with subject or body 'help' to<br>geonode-devel-request@lists.osgeo.org<br><br>You can reach the person managing the list at<br>geonode-devel-owner@lists.osgeo.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of geonode-devel digest..."<br>Today's Topics:<br><br>  1. Are visible attributes of a datasets available by API?<br>     (Toni Sch?nbuchner)<br>  2. Re: Are visible attributes of a datasets available by API?<br>     (Henning Bredel)<br>  3. Re: Are visible attributes of a datasets available by API?<br>     (Henning Bredel)<br><br>*Von: *Toni Schönbuchner <toni.schoenbuchner@csgis.de><br>*Betreff: **[GeoNode-devel] Are visible attributes of a datasets available by API?*<br>*Datum: *8. November 2023 um 14:01:51 MEZ<br>*An: *geonode-devel@lists.osgeo.org<br><br><br>Hi,<br><br>I haven’t found anything but before I give up:<br><br>Does one know if the attributes model is currently<br>exposed over api V2?<br><br>https://github.com/GeoNode/geonode/blob/96d72df6fa3f216e9f40ed33472e82048db8b06a/geonode/layers/models.py#L386 <https://github.com/GeoNode/geonode/blob/96d72df6fa3f216e9f40ed33472e82048db8b06a/geonode/layers/models.py#L386><br><br>Background is to get all visible attributes of a datased<br>based on the user selection.<br><br>Best regards<br><br>Toni<br><br>-----------------------------------------------<br>CSGIS<br><br>-----------------------------------------------<br>Spinnereistraße 7<br>Halle 18 04179 Leipzig<br>-----------------------------------------------<br>Webhttps://csgis.de<br>-----------------------------------------------<br><br>Hinweis gemäß § 33 BDSG<br>Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den<br>Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich<br>erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht<br>von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung,<br>Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.<br><br><br><br><br>*Von: *Henning Bredel <h.bredel@52north.org><br>*Betreff: **Aw: [GeoNode-devel] Are visible attributes of a datasets available by API?*<br>*Datum: *8. November 2023 um 14:38:17 MEZ<br>*An: *geonode-devel@lists.osgeo.org<br><br><br>Have a look here:<br><br>https://github.com/GeoNode/geonode/blob/96d72df6fa3f216e9f40ed33472e82048db8b06a/geonode/layers/api/serializers.py#L56<br><br>or<br><br>https://github.com/GeoNode/geonode/blob/96d72df6fa3f216e9f40ed33472e82048db8b06a/geonode/layers/models.py#L195<br><br>Best<br><br> Henning<br><br>On 08.11.23 14:36, Henning Bredel wrote:<br><blockquote type="cite">Toni,<br>as far as I can see, these are serialized as attribute_set, aren't they?<br>Not sure, though, how these could be marked visible or not.<br>Best<br>  Henning<br>On 08.11.23 14:01, Toni Schönbuchner via geonode-devel wrote:<br><blockquote type="cite">Hi,<br><br>I haven’t found anything but before I give up:<br><br>Does one know if the attributes model is currently<br>exposed over api V2?<br><br>https://github.com/GeoNode/geonode/blob/96d72df6fa3f216e9f40ed33472e82048db8b06a/geonode/layers/models.py#L386 <https://github.com/GeoNode/geonode/blob/96d72df6fa3f216e9f40ed33472e82048db8b06a/geonode/layers/models.py#L386><br><br>Background is to get all visible attributes of a datased<br>based on the user selection.<br><br>Best regards<br><br>Toni<br><br>-----------------------------------------------<br>CSGIS<br><br>-----------------------------------------------<br>Spinnereistraße 7<br>Halle 18 04179 Leipzig<br>-----------------------------------------------<br>Webhttps://csgis.de<br>-----------------------------------------------<br><br>Hinweis gemäß § 33 BDSG<br>Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den<br>Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich<br>erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht<br>von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung,<br>Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.<br><br><br>_______________________________________________<br>geonode-devel mailing list<br>geonode-devel@lists.osgeo.org<br>https://lists.osgeo.org/mailman/listinfo/geonode-devel<br></blockquote></blockquote><br>-- <br>Henning Bredel<br>52°North Spatial Information Research GmbH<br>Martin-Luther-King-Weg 24<br>48155 Münster, Germany<br>E-Mail: h.bredel@52north.org<br>http://52north.org/<br>Twitter: @FiveTwoN<br>Managing Directors:<br>Dr. Benedikt Gräler, Dr. Simon Jirka, Matthes Rieke<br>Local Court Muenster HRB 10849<br><br><br><br>*Von: *Henning Bredel <h.bredel@52north.org><br>*Betreff: **Aw: [GeoNode-devel] Are visible attributes of a datasets available by API?*<br>*Datum: *8. November 2023 um 14:36:51 MEZ<br>*An: *geonode-devel@lists.osgeo.org<br><br><br>Toni,<br><br>as far as I can see, these are serialized as attribute_set, aren't they?<br><br>Not sure, though, how these could be marked visible or not.<br><br>Best<br><br> Henning<br><br>On 08.11.23 14:01, Toni Schönbuchner via geonode-devel wrote:<br><blockquote type="cite">Hi,<br>I haven’t found anything but before I give up:<br>Does one know if the attributes model is currently<br>exposed over api V2?<br>https://github.com/GeoNode/geonode/blob/96d72df6fa3f216e9f40ed33472e82048db8b06a/geonode/layers/models.py#L386 <https://github.com/GeoNode/geonode/blob/96d72df6fa3f216e9f40ed33472e82048db8b06a/geonode/layers/models.py#L386><br>Background is to get all visible attributes of a datased<br>based on the user selection.<br>Best regards<br>Toni<br>-----------------------------------------------<br>CSGIS<br>-----------------------------------------------<br>Spinnereistraße 7<br>Halle 18 04179 Leipzig<br>-----------------------------------------------<br>Webhttps://csgis.de<br>-----------------------------------------------<br>Hinweis gemäß § 33 BDSG<br>Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den<br>Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich<br>erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht<br>von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung,<br>Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.<br>_______________________________________________<br>geonode-devel mailing list<br>geonode-devel@lists.osgeo.org<br>https://lists.osgeo.org/mailman/listinfo/geonode-devel<br></blockquote><br>-- <br>Henning Bredel<br>52°North Spatial Information Research GmbH<br>Martin-Luther-King-Weg 24<br>48155 Münster, Germany<br>E-Mail: h.bredel@52north.org<br>http://52north.org/<br>Twitter: @FiveTwoN<br>Managing Directors:<br>Dr. Benedikt Gräler, Dr. Simon Jirka, Matthes Rieke<br>Local Court Muenster HRB 10849<br><br><br>_______________________________________________<br>geonode-devel mailing list<br>geonode-devel@lists.osgeo.org<br>https://lists.osgeo.org/mailman/listinfo/geonode-devel<br></blockquote>_______________________________________________<br>geonode-devel mailing list<br>geonode-devel@lists.osgeo.org<br>https://lists.osgeo.org/mailman/listinfo/geonode-devel<br></blockquote><br>-- <br>Henning Bredel<br>52°North Spatial Information Research GmbH<br>Martin-Luther-King-Weg 24<br>48155 Münster, Germany<br>E-Mail: h.bredel@52north.org<br>http://52north.org/<br>Twitter: @FiveTwoN<br>Managing Directors:<br>Dr. Benedikt Gräler, Dr. Simon Jirka, Matthes Rieke<br>Local Court Muenster HRB 10849<br><br><br>_______________________________________________<br>geonode-devel mailing list<br>geonode-devel@lists.osgeo.org<br>https://lists.osgeo.org/mailman/listinfo/geonode-devel<br></div></blockquote></div><br></body></html>