Float mapping of the point feature colors?
in Vector Data
Hello
I need to assign different color to each vector point feature of the layer (stars).
I would like to use values from database (spectrum type) as a map for these colors.
I don't expect that GM will create these associations
but will read them from the standard point style definition:
AttrName=SPTYPE
AttrVal=A1
AttrPointStyle=Dot - FirstColor@SCALE=2
AttrVal=G0
AttrPointStyle=Dot - SecondColor@SCALE=2
AttrVal=M0
AttrPointStyle=Dot - NColor@SCALE=2
Let's assume:
SPTYPE=A1 => RGB(200,250,250)
SPTYPE=G0 => RGB(240,200,80)
SPTYPE=M0 => RGB(250,110,100)
etc.
Can this job be done by Global Mapper
Or can I only use predefined point styles?
yarr
I need to assign different color to each vector point feature of the layer (stars).
I would like to use values from database (spectrum type) as a map for these colors.
I don't expect that GM will create these associations
but will read them from the standard point style definition:
AttrName=SPTYPE
AttrVal=A1
AttrPointStyle=Dot - FirstColor@SCALE=2
AttrVal=G0
AttrPointStyle=Dot - SecondColor@SCALE=2
AttrVal=M0
AttrPointStyle=Dot - NColor@SCALE=2
Let's assume:
SPTYPE=A1 => RGB(200,250,250)
SPTYPE=G0 => RGB(240,200,80)
SPTYPE=M0 => RGB(250,110,100)
etc.
Can this job be done by Global Mapper
Or can I only use predefined point styles?
yarr
Answers
-
I missed useful <DOT_CUSTOM_size_R_G_B> command:
AttrVal=B3Ve
AttrPointStyle=DOT_CUSTOM_2_48_255_152
Works perfectly.
yarr
-
This is the sample of my target image (after some small graphic corrections).
I also attached the source workspace archive for stars up to 6M with .gm_layer_style files.
Cheers -
yarr
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website