uDIG
  1. uDIG
  2. UDIG-1854

Labels are rendered if layer down below a raster layer

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: UDIG 1.2.2, 2.x
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
      None

      Description

      Add two layers, a shapefile and a raster layer, to the map (e.g. from naturalearth.com)

      • put the shapefile layer on top of the raster layer
      • change style for shapefile and add a label (everything is still fine)
      • change layer order and drag&drop the raster layer on top of the shapefile layer
      • borders and fillings of the shapefile are not visible anymore, label are still shown

        Activity

        Hide
        Frank Gasdorf added a comment -
        Correct link for free data sets : http://www.naturalearthdata.com/
        Show
        Frank Gasdorf added a comment - Correct link for free data sets : http://www.naturalearthdata.com/
        Hide
        Pechko Elena added a comment -
        pictures for uDig 1.1.1
        Show
        Pechko Elena added a comment - pictures for uDig 1.1.1
        Hide
        Pechko Elena added a comment -
        The same behaviour can be reproduced for uDig 1.1.1.
        In addition, another problem exists - labels are on top of the legend.
        See pictures attached.
        Show
        Pechko Elena added a comment - The same behaviour can be reproduced for uDig 1.1.1. In addition, another problem exists - labels are on top of the legend. See pictures attached.
        Hide
        Frank Gasdorf added a comment -
        I guess the problem is coming from the ILabelPainter which has no information about the "paint over" between layers. In this case its the winning raster layer (which is not transparent).
        From my Point of View the CompositeRendererImpl should check the style (OpacityFinder) and the resulting image from renderer whether its ColorModel hasn't an alpha value (hasAlpha == false).

        The OpacityFinder doesn't support RasterSymbolizers up to now, therefor I created an issue : GEOS-4102

        If the check is positive, for all (already) rendered Layers the Label Cache should be disabled.

        Any other better suggestions to solve this?
        Show
        Frank Gasdorf added a comment - I guess the problem is coming from the ILabelPainter which has no information about the "paint over" between layers. In this case its the winning raster layer (which is not transparent). From my Point of View the CompositeRendererImpl should check the style (OpacityFinder) and the resulting image from renderer whether its ColorModel hasn't an alpha value (hasAlpha == false). The OpacityFinder doesn't support RasterSymbolizers up to now, therefor I created an issue : GEOS-4102 If the check is positive, for all (already) rendered Layers the Label Cache should be disabled. Any other better suggestions to solve this?

          People

          • Assignee:
            Jody Garnett
            Reporter:
            Frank Gasdorf
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: