Re: [GRASS-dev] [GRASS GIS] #3014: Add ticks to continuous raster legend

2016-06-11 Thread GRASS GIS
#3014: Add ticks to continuous raster legend
--+-
  Reporter:  annakrat |  Owner:  grass-dev@…
  Type:  enhancement  | Status:  new
  Priority:  normal   |  Milestone:  7.3.0
 Component:  Display  |Version:  svn-trunk
Resolution:   |   Keywords:  d.legend, gsoc2016, cartography
   CPU:  Unspecified  |   Platform:  All
--+-

Comment (by annakrat):

 Thanks, I tested it and it works very well. I have couple of suggestions:

 * if you compare the default before and after this change, the white
 border is now transparent, so that should be changed back. Also if you
 test categorical data, the black/white border is switched (inner is black,
 should be white). The current default legend size is wider than the
 previous one, that should be fixed as well.

 * drawing ticks should be optional, implement for example '-t' flag.
 Question is if it should draw the ticks by default or not. Let's switch
 them off by default for now.

 * the vertical centering of the labels and ticks is not quite perfect, I
 wonder if it could be improved

 * I thought more about the names of the new parameters and decided
 `label_values` and `label_step` would fit more to `labelnum`

 * the `-c` flag should always hide all the numbers, it is actually useful
 mostly with categorical data

 * I think when option `label_value` or `label_step` is used, `labelnum`
 should be ignored. So the min max values won't be displayed. I hope we
 could get some feedback from other users what kind of behavior would be
 more natural.

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3014: Add ticks to continuous raster legend

2016-06-11 Thread GRASS GIS
#3014: Add ticks to continuous raster legend
--+-
  Reporter:  annakrat |  Owner:  grass-dev@…
  Type:  enhancement  | Status:  new
  Priority:  normal   |  Milestone:  7.3.0
 Component:  Display  |Version:  svn-trunk
Resolution:   |   Keywords:  d.legend, gsoc2016, cartography
   CPU:  Unspecified  |   Platform:  All
--+-
Changes (by lazaa):

 * Attachment "d.legend.diff" added.

 added several options for d.legend

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3014: Add ticks to continuous raster legend

2016-06-11 Thread GRASS GIS
#3014: Add ticks to continuous raster legend
--+-
  Reporter:  annakrat |  Owner:  grass-dev@…
  Type:  enhancement  | Status:  new
  Priority:  normal   |  Milestone:  7.3.0
 Component:  Display  |Version:  svn-trunk
Resolution:   |   Keywords:  d.legend, gsoc2016, cartography
   CPU:  Unspecified  |   Platform:  All
--+-

Comment (by lazaa):

 I uploaded new patch and I added several new options. Option {{{title}}}
 to define custom title to display on the top of the legend.
 {{{
 d.legend raster=srtm title="Map legend"
 }}}
 An option {{{tick_value}}} to specify values where the ticks and labels
 will be displayed. Option {{{labelnum}}} is used to show only min and max.
 {{{
 d.legend raster=srtm labelnum=2 tick_value=1000,1848,2700,3500
 }}}
 Then option {{{step}}} to draw ticks and display labels at rounded values-
 values divisible by {{{step}}} value with rest 0. (Flag {{{-c}}} is used
 to hide labels generated from {{{labelnum}}} and to display only labels
 with defined interval.)
 {{{
 d.legend raster=srtm -c step=500
 }}}

 I've tested it for vertical/horizontal and normal/flipped legend it works
 fine. There's a problem with horizontal legend if user define more ticks
 then longer labels can overlap.

 More testing welcome.

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #3061: "Export vector data as multi-features" leads to crash

2016-06-11 Thread GRASS GIS
#3061: "Export vector data as multi-features" leads to crash
--+-
  Reporter:  neo  |  Owner:  grass-dev@…
  Type:  defect   | Status:  new
  Priority:  normal   |  Milestone:  7.0.5
 Component:  Default  |Version:  unspecified
Resolution:   |   Keywords:
   CPU:  x86-64   |   Platform:  MSWindows 7
--+-

Comment (by neo):

 The shapefile is too big for an attachment, so here it is instead:
 https://www.dropbox.com/s/ahy2t2ndk5xmebh/cluster_borders.zip

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] [GRASS GIS] #3061: "Export vector data as multi-features" leads to crash

2016-06-11 Thread GRASS GIS
#3061: "Export vector data as multi-features" leads to crash
-+-
 Reporter:  neo  |  Owner:  grass-dev@…
 Type:  defect   | Status:  new
 Priority:  normal   |  Milestone:  7.0.5
Component:  Default  |Version:  unspecified
 Keywords:   |CPU:  x86-64
 Platform:  MSWindows 7  |
-+-
 I run the following commands which lead to a crash of GRASS on the
 shapefile that I attached:
 {{{
 v.in.ogr input=/input/Clusters_Borders.shp layer=Clusters_Borders
 output=Clusters_Borders
 v.clean input=Clusters_Borders output=tempA --o tool=rmarea thresh=0.001
 v.clean input=tempA output=tempB --o tool=snap thresh=0.001
 v.clean input=tempB output=tempA --o tool=break thresh=0.001
 v.clean input=tempA output=tempB --o tool=rmdupl thresh=0.001
 v.out.ogr -s -m input=tempB@cluster_borders output=/output
 format=ESRI_Shapefile
 }}}

 The crash does not happen if I leave out the -m parameter on the last
 command.

 The clean commands above are from here:
 http://gis.stackexchange.com/a/71729

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Problem georeferencing vectors with g.gui.gcp

2016-06-11 Thread Margherita Di Leo
Hi,

I have a group of vectors to georeference, but can't create a group of
vectors using g.gui.gcp.
At the first menu: Select map type and location/mapset, i successfully
select vector radio button and location and mapset.
At the next menu, i have to create the group, but the menu is partly not
responsive. In the field 'select group' I can't neither write nor browse
any options. If I add vector maps to group (but i guess first i have to
name/create a group) I can pick the layers that i want to add, but they are
not added to anything, the 'next' button is grey and can't be pushed, and
in the terminal appears:

Traceback (most recent call last):
  File "/usr/local/grass-7.1.svn/gui/wxpython/gcp/manager.py", line 529, in
OnVGroup
dlg.MakeVGroup()
  File "/usr/local/grass-7.1.svn/gui/wxpython/gcp/manager.py", line 2262,
in MakeVGroup
f = open(self.vgrpfile, mode='w')
IOError: [Errno 2] No such file or directory:
'/home/madi/grassdata/non_georef/PERMANENT/group/VREF'

If I go on create/edit group, in the field 'select existing group or enter
name of new group' I write a name, then 'select all' - 'add' opens a menu
in which i can't select 'vector' but only raster. I guess i should be able
to select vector because there is an arrow down to the raster option, but
raster is the only option i can actually select. I find it counter
intuitive since i have already made the choice in the previous menus
between raster and vectors. However, from this menu I get stuck, if i push
apply, with select all option, I get the strange message of 'no raster maps
selected'. (why raster?). In the end, I'm not able to create a group of
vector.

Perhaps I'm missing something?

Tested it on grass 7.1.svn (r65171) on Fedora.

Thank you in advance
Cheers,


-- 
Margherita Di Leo
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2369: Include map elements into GRASS workspaces

2016-06-11 Thread GRASS GIS
#2369: Include map elements into GRASS workspaces
--+--
  Reporter:  mastho   |  Owner:  grass-dev@…
  Type:  enhancement  | Status:  new
  Priority:  normal   |  Milestone:  7.3.0
 Component:  wxGUI|Version:  unspecified
Resolution:   |   Keywords:  workspace, cartography, gsoc2016
   CPU:  Unspecified  |   Platform:  Unspecified
--+--

Comment (by annakrat):

 In [changeset:"68669" 68669]:
 {{{
 #!CommitTicketReference repository="" revision="68669"
 wxGUI: save changes to workspace notification fixed, author Adam Laza, see
 #2369 (merge from trunk, r68668)
 }}}

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] [GRASS GIS] #2369: Include map elements into GRASS workspaces

2016-06-11 Thread GRASS GIS
#2369: Include map elements into GRASS workspaces
--+--
  Reporter:  mastho   |  Owner:  grass-dev@…
  Type:  enhancement  | Status:  new
  Priority:  normal   |  Milestone:  7.3.0
 Component:  wxGUI|Version:  unspecified
Resolution:   |   Keywords:  workspace, cartography, gsoc2016
   CPU:  Unspecified  |   Platform:  Unspecified
--+--

Comment (by annakrat):

 In [changeset:"68668" 68668]:
 {{{
 #!CommitTicketReference repository="" revision="68668"
 wxGUI: save changes to workspace notification fixed, author Adam Laza, see
 #2369
 }}}

--
Ticket URL: 
GRASS GIS 

___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] GSoC: Basic cartography suite in GRASS - Week 3

2016-06-11 Thread Adam Laža
Hi all,

below is my third week report.

Best regards,
Adam

Wiki page:
https://trac.osgeo.org/grass/wiki/GSoC/2016/BasicCartographySuiteInGRASS



Week 3, June, 6 - 10

1. What did you get done this week?
I worked on the module d.legend.
I worked on ticket #3014[1]. I added ticks for labels generated from
labelnum option. I added option tick_value, so user can specify custom
values to display ticks and labels.

I worked on GUI/Workspace #2369[2]
Map elements like barscale, north arrow and legend now can be saved
to/restore from workspace file. I fixed the bug which caused that user got
a save-changes alert even though hadn't change anything.


2. What do you plan on doing next week?
I will add some more features to d.legend. I'd like to add background and
border options.
I will work on workspace. After discussion with my mentor I should
implement option for adding text with d.text value.


3. Are you blocked on anything?
Nope.

[1]: https://trac.osgeo.org/grass/ticket/3014
[2]: https://trac.osgeo.org/grass/ticket/2369
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev