Comments (6)
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.
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.
Author: dmorissette
Date: 2003/07/01 - 04:00
Can't be done in 4.0, maybe in 4.1.
from mapserver.
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.
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.
fix would be style caching, which is adressed in #3995 and #3976
from mapserver.
Related Issues (20)
- Custom projections not supported via WFS HOT 2
- Whitespace in EXPRESSIONS added to SLD Filters
- Antimeridian BBOXes not supported by the OGC Features API
- Failing Windows CI Test test_rq_10 HOT 5
- Authentication of users and access to data based on S3 keys provided through Run-time Substitution. HOT 3
- PHPScript HOT 2
- Using LAYER CLASS filters for MVT tiles rendering HOT 6
- ability to use non existing properties in (FI) templates HOT 5
- Segfault when Mapfile includes a missing file HOT 3
- data loss on getmap requests when vector data is reprojected EPSG:2056 to EPSG:4326 HOT 4
- In under certain conditions Mapserver segfault error geos_ts_c.cpp HOT 2
- Posgresql returns in response all products in database, even if BBOX parameter is passed
- undefined symbol: msCGIWriteLog when calling any mapserver command HOT 2
- Web metadata ows_schemas_location is not respected for OGC API Features, and appears to not be documented HOT 3
- Memory corruption in msUpdate...FromString
- Parser IO error is ignored if map include is a directory
- msRedactCredentials removes too much content especially for postgis connections HOT 4
- Mapserver unable to read config file HOT 2
- erroneous extra outlines when using WIDTH based on an attribute HOT 4
- centerline function causes GEOS errors HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapserver.