[GeoNode-users] Documentation for CSW
Israel López
asralf at gmail.com
Mon May 2 13:46:19 PDT 2016
Hello Tom, thanks so much for the info, well I'm running the next commands
on
a python console:
>>> from owslib.csw import CatalogueServiceWeb
>>> csw = CatalogueServiceWeb('
http://ide.adesur.centrogeo.org.mx/catalogue/csw')
>>> csw.getrecords2(maxrecords=1000)
>>> csw.results
According with this documentation:
https://geopython.github.io/OWSLib/#csw
for testing purpose I use this, to retrieve a specific field:
>>> print csw.records.itervalues().next().title
for title and abstract I don't have any troubles, but for things
like keywords and others, It doesn't work.
I'lll appreciate your help..
Israel Lopez
2016-04-30 13:01 GMT-05:00 Tom Kralidis <tomkralidis at gmail.com>:
> Hi Israel: thanks for the info. To add to Simone's recommendation:
>
> - the physical mappings in GeoNode are defined in [1] and follow the
> semantics defined in [2]
> - GeoNode's CSW support (pycsw) uses GeoNode's "ResourceBase" model [3]
>
> Having said this, things like keywords and categories should work out
> of the box in
> GeoNode's CSW per se. Can you provide a workflow so I can reproduce?
>
> Thanks
>
> ..Tom
>
> [1]
> https://github.com/GeoNode/geonode/blob/master/geonode/catalogue/backends/pycsw_local_mappings.py
> [2]
> http://docs.pycsw.org/en/latest/administration.html#mapping-to-an-existing-repository
> [3]
> https://github.com/GeoNode/geonode/blob/master/geonode/base/models.py#L226
>
> On Sat, Apr 30, 2016 at 7:04 AM, Simone Dalmasso
> <simone.dalmasso at gmail.com> wrote:
> > Hi,
> >
> > Here you will find the docs http://pycsw.org/
> >
> > Hope this helps.
> >
> > Il sabato 30 aprile 2016, Israel López <asralf at gmail.com> ha scritto:
> >>
> >> Hi dear devs I'm looking for documentation for the use of
> >> the geonode's catalogue service (CSW), i want to know
> >> how to configure it, mapping and get specific metadata fields.
> >>
> >> Right now I just can get the title and the abstract of the resources,
> >> but I cannot get things like the keywords and categories, this
> >> information is important to me.
> >>
> >> Any help is valuable, thanks in advance,
> >>
> >>
> >
> >
> > --
> > Simone
> >
> > _______________________________________________
> > geonode-users mailing list
> > geonode-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/geonode-users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160502/6d28f043/attachment.html>
More information about the geonode-users
mailing list