New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering order problem of features with more styles #5340
Comments
Given the rendering, I'm pretty sure the railways are rendered before the streets, and are thus not ordered in the shapefile as you think they are. |
The rendering pseudo-code is:
Thus I still believe that your assumption about the ordering of features in your shapefile is incorrect (maybe your qix index is outdated?). For me it is ordered as railway, street, road The rendering algorithm is going to have issues with railway ties alongside street casings:
|
@tbonfort According to my investigations this issue is due to the build in shape cache functionality which causes that only the first style is rendered for each feature, then the remaining styles from the shape cache. Would that be an option to suppress the cache by a processing key for example? |
+1 on bb0fcbc . But I doubt that you'll achieve the desired output with that patch (you'll have artifacts on road casings) |
This is a problem indeed, it might be better to separate the street/road/railways into separate layers |
On the map we can see:
Street: white inside, black outside
Road: orange inside, black outside
Railway: black and wide and has a black decorating sign
In the shape file the order of these features are:
(This can be easely checked by the selected features' feature ids in the second picture)
The three feature are in the same layer.
The decorator sign comes from a TRUETYPE font file.
In the first picture we can see that the Railway's decorating sign rendered properly but the
line itself not. It should cover the two other kinds of roads.
The definition of the Railway's class is:
CLASS
NAME "Egyvágányú normál vasút (100463)"
EXPRESSION "100463"
MAXSCALEDENOM 300000
STYLE
COLOR 0 0 0
INITIALGAP 0
LINEJOIN ROUND
MAXWIDTH 800
WIDTH 25
END # STYLE
STYLE
COLOR 0 0 0
GAP -1250
INITIALGAP 0
MAXSIZE 3200
SIZE 372
SYMBOL "105"
END # STYLE
END # CLASS
At last in the third picture we can see if I change the order of the styles of the Railway's class
than the last style will be the only one which is rendered correctly.
This phenomenon surely connected to the fact that only the last style is highlighted of selected feature
see Issue #5333 "Only the last style is highlighted of a selected feature"
https://github.com/mapserver/mapserver/issues/5333
The text was updated successfully, but these errors were encountered: