[GRASS-dev] g.gui.metadata and wxgui addons in GRASS 7.1

Matej Krejci matejkrejci at gmail.com
Tue Aug 25 03:05:52 PDT 2015


Hi Stephan,

I can browse the maps in my mapset and the pen and the “template” button
> get active. Yet, when I click on “template” I get:
>
>
>
> WARNING: Epsg code cannot be identified
>
> Traceback (most recent call last):
>
>   File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata", line 291, in
> onCreateTemplate
>
>     if self.onEdit():
>
>   File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata", line 303, in
> onEdit
>
>     ok = self.editMapMetadata()
>
>   File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata", line 648, in
> editMapMetadata
>
>     self.xmlPath = self.mdCreator.saveXML(self.mdDestination,
> self.nameTMPteplate, self)
>
>   File "/usr/local/grass-7.1.svn/etc/wx.metadata/mdlib/mdgrass.py", line
> 513, in saveXML
>
>     profile = env.get_template(self.profilePath)
>
>   File
> "/usr/local/lib/python2.7/dist-packages/Jinja2-2.9.dev-py2.7.egg/jinja2/environment.py",
> line 812, in get_template
>
>     return self._load_template(name, self.make_globals(globals))
>
>   File
> "/usr/local/lib/python2.7/dist-packages/Jinja2-2.9.dev-py2.7.egg/jinja2/environment.py",
> line 774, in _load_template
>
>     cache_key = self.loader.get_source(self, name)[1]
>
>   File
> "/usr/local/lib/python2.7/dist-packages/Jinja2-2.9.dev-py2.7.egg/jinja2/loaders.py",
> line 187, in get_source
>
>     raise TemplateNotFound(template)
>
> jinja2.exceptions.TemplateNotFound:
> etc/wx.metadata/profiles/basicProfile.xml
>
>
>
Current revision is 66011. Before was everything defined fixedly to grass
addons environment/base. Now it should work in all way of installation.
please try:

sudo make MODULE_TOPDIR=/usr/local/grass-7.1.svn
sudo make MODULE_TOPDIR=/usr/local/grass-7.1.svn install

folders with metadata libs, profiles and configure files need make install.


The location was defined using an EPSG code (25632). It is a standard
> ETRS/UTM based CRS which is quite common for the western to central parts
> of Europe (and INSPIRE compliant)…
>
This warning does not affect for something important.  Only auto
identifying EPSG from WKT proj is not successful which means that the
metadata attribute has not value. I changed warning to message because a
lots of attributes cannot be filled from r/v.info.


>
>
> Anyway, the first glimpse I got from g.gui.metadata looked promising!
> Thanks for your work on that!
>
>
>

big thanks for your endurance :-)

Matej
------------- dal�� ��st ---------------
HTML p��loha byla odstran�na...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150825/4fd9e6e8/attachment.html>


More information about the grass-dev mailing list