Change color on imported shape file lines

SABowmanSABowman Global Mapper UserPosts: 5
edited August 2014 in Technical Support
Hi All:

I am laying a vector ESRI shape file on top of a GeoPDF raster layer. I need to change the line color from black to red, for visibility. Changing the vector overlay attributes to red, applying and saving does not ever change the shape lines color or thickness.

Am I missing something? This seem like it should be an easy thing to do. The file imports flawlessly and correctly geo-registers.

Steve

Comments

  • bmg_bobbmg_bob Global Mapper Programmer Posts: 2,058
    edited August 2014
    Hi Steve,

    Thank you for using Global Mapper.

    In order to change the line style in a loaded layer, you need to use the Overlay Control Center (Tools->Control Center...).
    1. Select the layer for which you want to set the style, and click the Options... button.
    2. On the Vector Options window, click the Line Styles tab.
    3. Choose the Use Same Style for All Features option, and then define the line style, width, and color on the Select Line Style window.
    4. Click OK (or Apply) on the Vector Options window to see the changes.
    If you save your changes in a workspace, then the style will be reapplied automatically when you load that workspace.

    Cheers,

    Bob
  • samknightsamknight BMG Staff Posts: 88
    edited August 2014
    Hi Steve,
    Unfortunately Shape files are not able to store style information inside the files so any export to shape will lose any applied styles. This is a limitation of the shape file format itself, rather than specifically a Global Mapper limitation. You would need to export to an alternate format to preserve the styling. What software are you taking these out to? We may be able to suggest an alternative that would work better for your flow.
    Regards,
    Sam Knight
    Director of Product Management
    Blue Marble Geographics
  • SABowmanSABowman Global Mapper User Posts: 5
    edited August 2014
    bmg_bob wrote: »
    Hi Steve,

    Thank you for using Global Mapper.

    In order to change the line style in a loaded layer, you need to use the Overlay Control Center (Tools->Control Center...).
    1. Select the layer for which you want to set the style, and click the Options... button.
    2. On the Vector Options window, click the Line Styles tab.
    3. Choose the Use Same Style for All Features option, and then define the line style, width, and color on the Select Line Style window.
    4. Click OK (or Apply) on the Vector Options window to see the changes.
    If you save your changes in a workspace, then the style will be reapplied automatically when you load that workspace.

    Cheers,

    Bob

    This is is exactly what I have done. It never changes (even though the layer seems to refresh on clicking "apply"). Not sure why it is not working.

    Steve
  • SABowmanSABowman Global Mapper User Posts: 5
    edited August 2014
    samknight wrote: »
    Hi Steve,
    Unfortunately Shape files are not able to store style information inside the files so any export to shape will lose any applied styles. This is a limitation of the shape file format itself, rather than specifically a Global Mapper limitation. You would need to export to an alternate format to preserve the styling. What software are you taking these out to? We may be able to suggest an alternative that would work better for your flow.
    Regards,
    Sam Knight
    Director of Product Management
    Blue Marble Geographics

    It is being printed out for public review of FEMA flood data, which is being updated.

    Steve
  • bmg_bobbmg_bob Global Mapper Programmer Posts: 2,058
    edited August 2014
    Hi Steve,

    To summarize: You load a GeoPDF raster, and an Esri shapefile with line data. Then you select the shapefile layer in the Control Center and change the line style, but when you click Apply or OK, the shapefile lines on the screen remain black (the default). Is this correct? If not, please provide details of your workflow, and attach your data here (zip file) so that we can try to reproduce the problem.

    Also, what version of Global Mapper are you using?

    Cheers,

    Bob
  • SABowmanSABowman Global Mapper User Posts: 5
    edited August 2014
    bmg_bob wrote: »
    Hi Steve,

    To summarize: You load a GeoPDF raster, and an Esri shapefile with line data. Then you select the shapefile layer in the Control Center and change the line style, but when you click Apply or OK, the shapefile lines on the screen remain black (the default). Is this correct? If not, please provide details of your workflow, and attach your data here (zip file) so that we can try to reproduce the problem.

    Also, what version of Global Mapper are you using?

    Cheers,

    Bob

    That is correct. I am using this same sequence on the current version of GM.

    Also worth mentioning, I have tried the same workflow merely importing the .shp file. Still the same result.

    If I was to export to another format, would DXF save the color info? Apparently .shp files do not save color attributes.

    Steve
  • DMcKittrickDMcKittrick Global Mapper Trainer Posts: 58Trusted User
    edited August 2014
    Steve,

    Let's try another method:

    1. In the Overlay Control Center, select the layer containing the lines
    2. Right-click and choose Select All Features in the Selected Layer(s) with the Digitizer Tool. The lines should be highlighted on the map (red dashed appearance)
    3. Right-click anywhere on the map and Choose EDIT - Edit Selected Feature(s)
    4. In the Modify Selected Line Features dialog box, choose Specify Style to Use When Rendering Features and adjust the line color/weight as needed. The sample line display in the dialog box will show you a preview of your selected style.
    5. Click the OK button

    If you export a dxf, your chosen colors will be preserved.

    David McKittrick
    Senior Applications Specialist
    Blue Marble Geographics
  • SABowmanSABowman Global Mapper User Posts: 5
    edited August 2014
    Steve,

    Let's try another method:

    1. In the Overlay Control Center, select the layer containing the lines
    2. Right-click and choose Select All Features in the Selected Layer(s) with the Digitizer Tool. The lines should be highlighted on the map (red dashed appearance)
    3. Right-click anywhere on the map and Choose EDIT - Edit Selected Feature(s)
    4. In the Modify Selected Line Features dialog box, choose Specify Style to Use When Rendering Features and adjust the line color/weight as needed. The sample line display in the dialog box will show you a preview of your selected style.
    5. Click the OK button

    If you export a dxf, your chosen colors will be preserved.

    David McKittrick
    Senior Applications Specialist
    Blue Marble Geographics

    Bingo. Worked first attempt and it's repeatable! Thanks!

    Steve
Sign In or Register to comment.