Re: [GRASS-user] v.colors: proper command syntax

2018-11-03 Thread Rich Shepard

On Sat, 3 Nov 2018, Micha Silver wrote:


Something like this might help:


Micha,

  Found an online converter that did the job.

Thanks,

Rich
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] v.colors: proper command syntax

2018-11-03 Thread Micha Silver

  
  

On 11/3/18 2:38 PM, Rich Shepard wrote:

On
  Sat, 3 Nov 2018, Micha Silver wrote:
  
  
  If you want to avoid a color table then
specifiy an additional column

"rgb_column=" which gives the colors in decimal RGB format such
as

"255:0:0" for red for example.

  
  
  Micha,
  
  
    I didn't know whether grass cared about the numeric format. I'll
  lookup
  
  the hex code to decimal code and change then in the same column (a
  simple
  
  update statement).
  
  

Something like this might help:
>printf "%d\n" 0xff
255


You'll have to split the hex string into the 3 color components,
  of course.






 
  Still for me to learn is the relation between v.colors and d.vect.
  
  Trial-and-error learning, I suppose.
  
  
  Thanks,
  
  
  Rich
  
  ___
  
  grass-user mailing list
  
  grass-user@lists.osgeo.org
  
  https://lists.osgeo.org/mailman/listinfo/grass-user

-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918
  

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] v.colors: proper command syntax

2018-11-03 Thread Rich Shepard

On Sat, 3 Nov 2018, Micha Silver wrote:


If you want to avoid a color table then specifiy an additional column
"rgb_column=" which gives the colors in decimal RGB format such as
"255:0:0" for red for example.


Micha,

  I didn't know whether grass cared about the numeric format. I'll lookup
the hex code to decimal code and change then in the same column (a simple
update statement).

  Still for me to learn is the relation between v.colors and d.vect.
Trial-and-error learning, I suppose.

Thanks,

Rich
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] v.colors: proper command syntax

2018-11-03 Thread Micha Silver

  
  

On 11/2/18 11:09 PM, Rich Shepard
  wrote:

 
  The stations (vector, point) table has 10 columns:
  
   site_nbr   | character varying(8)
  
   site_name  | character varying(64)
  
   lon    | numeric(12,6)
  
   lat    | numeric(10,6)
  
   easting    | numeric
  
   northing   | numeric
  
   start_date | date
  
   end_date   | date
  
   howmany    | integer
  
   bin_col    | character(8)
  
  
    I don't know which column to specify in the command,
  
  v.colors map=stations use=attr column=bin_col
  
  does not work.
  
  
  column is the name of column containing numeric data and color is
  the name of color
  
  table. But I don't want or need a color table because the column
  'bin_col'
  
  has colors for specified ranges of the howmany column in hex rgb
  format
  
  (e.g., #73E700). If the command will display the map with points
  colored
  
  according to bin_col please show me the proper syntax.
  



If you want to avoid a color table then specifiy an additional
  column "rgb_column=" which gives the colors in decimal RGB format
  such as "255:0:0" for red for example.



  
    If v.colors is not the appropriate module for me to display this
  map with
  
  points colored using the bin_col value, please point me to the
  proper
  
  module.
  
  
  TIA,
  
  
  Rich
  
  
  ___
  
  grass-user mailing list
  
  grass-user@lists.osgeo.org
  
  https://lists.osgeo.org/mailman/listinfo/grass-user

-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918
  

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

[GRASS-user] v.colors: proper command syntax

2018-11-02 Thread Rich Shepard

  The stations (vector, point) table has 10 columns:
 site_nbr   | character varying(8)
 site_name  | character varying(64)
 lon| numeric(12,6)
 lat| numeric(10,6)
 easting| numeric
 northing   | numeric
 start_date | date
 end_date   | date
 howmany| integer
 bin_col| character(8)

  I don't know which column to specify in the command,
v.colors map=stations use=attr column=bin_col
does not work.

column is the name of column containing numeric data and color is the name of 
color
table. But I don't want or need a color table because the column 'bin_col'
has colors for specified ranges of the howmany column in hex rgb format
(e.g., #73E700). If the command will display the map with points colored
according to bin_col please show me the proper syntax.

  If v.colors is not the appropriate module for me to display this map with
points colored using the bin_col value, please point me to the proper
module.

TIA,

Rich

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user