[GRASS-dev] [GRASS GIS] #3010: PyGRASS fails to write vector map with attributes
GRASS GIS
trac at osgeo.org
Sun Nov 13 15:00:40 PST 2016
#3010: PyGRASS fails to write vector map with attributes
-------------------------+-------------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: reopened
Priority: major | Milestone: 7.2.0
Component: PyGRASS | Version: svn-trunk
Resolution: | Keywords: vector, API break, backwards
CPU: | compatibility
Unspecified | Platform: All
-------------------------+-------------------------------------------------
Comment (by wenzeslaus):
Replying to [comment:4 martinl]:
> Replying to [comment:3 wenzeslaus]:
> > The following from r68603 is breaking backwards compatibility between
7.0 and 7.2:
>
> There are much more breakage of backward compatibility between 7.0 and
7.2 (speaking about pyGRASS). This is just one of them.
If there is more, it would be good to have them in
wiki:Release/7.2.0-News#PyGRASSchanges.
For the parts where the feature is a basic feature (like writing
attributes) or it is easy to implement (like switching parameters) we
should keep compatibility like in r69809 (the cat auto-incrementing was
already there).
How to report that to the user is a question. I used
{{{
#!python
import warnings
warnings.warn("Vector.write(geo_obj, attrs=(...)) is"
" depreciated, specify cat explicitly",
DeprecationWarning)
}}}
which is a more conservative option - by default it is visible only with
`python -Qwarn`.
If OK, r69809 needs backport to 7.2.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3010#comment:9>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list