Coder Social home page Coder Social logo

Comments (6)

mapserver-bot avatar mapserver-bot commented on May 16, 2024

Author: dmorissette
Date: 2001/07/16 - 22:31

It's an annoying side-effect, but there isn't much we can do about it
due to the nature of the STYLEITEM AUTO feature.

The legend is draw after the map, and since the layers don't have a
static classification any more, the sample is based on the last feature
from the layer that was drawn with each class... the blanks key in some
cases are likely because no feature from that layer were drawn.

Now, that explains it, but doesn't solve the issue... since there can be
thousands of different colors and styles in a single TAB layer, we can't
do much except perhaps disabling the legend, or having the user specify
a small GIF image to be used as the legend key?  Any idea?

from mapserver.

mapserver-bot avatar mapserver-bot commented on May 16, 2024

Author: dmorissette
Date: 2003/01/03 - 18:46

Excerpt from a mapserver-users thread about this on 2003-01-03:

Oliver Wesp wrote:
> 
> I'm somwhat new to using MapInfo TABs with MapServer. So far I got
> everything up and running. My TABs contain different styles so I'm using
> StyleItem 'AUTO' to render these layers. Works fine except for the
> legend. I like every class to appear on the legend. Is this possible? An
> empty class section doesn't appear in the legend (lack of name-item).
> If I add NAME to my class section one class appears in the legend and
> is randomly rendered with different styles due to the displayed features
> when I zoom into the map.

Daniel Morissette wrote:
>
> ...
>
> I guess we could also modify MapServer so that if you define CLASS
> parameters (colors, etc.) in your layer then those parameters are saved
> and used for the legend icons instead of the current behavior where
> whatever you set in the CLASS object with STYLEITEM AUTO is simply
> ignored and the style of the last object takes precedence.
> 

from mapserver.

mapserver-bot avatar mapserver-bot commented on May 16, 2024

Author: dmorissette
Date: 2003/07/01 - 04:00

Can't be done in 4.0, maybe in 4.1.

from mapserver.

mapserver-bot avatar mapserver-bot commented on May 16, 2024

Author: tamas
Date: 2007/08/25 - 01:21
I'm pretty interested in having a solution on this issue as soon as possible. This behaviour exists in many places out there and the actually rendered output seems to be run time determinated (depending on how the features have been drawn before) that is very frustrating. I bet the most prudent approach is to utilize the OGR datasource level default style as described in http://www.gdal.org/ogr/ogr_feature_style.html. And throw up with the practice to derive the symbology of the legend images from the feature style.

I would also interested in a solution to allow the override of the parameters of the auto style selectively from the mapfile or the mapscript interface.

from mapserver.

mapserver-bot avatar mapserver-bot commented on May 16, 2024

Author: dmorissette
Date: 2007/08/25 - 14:57
Note that the datasource-level style table and default style concepts were just ideas in this document and were never implemented in any driver. Even if we wanted to do it, I'm not sure how the TAB driver could provide a default style for a given .TAB dataset since the source file doesn't contain any info that could be used for that.

With respect to the override of parameters of the auto styles, that should be the topic of another ticket to avoid bloating this ticket with too many issues.

from mapserver.

tbonfort avatar tbonfort commented on May 16, 2024

fix would be style caching, which is adressed in #3995 and #3976

from mapserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.