Hi Steve Its one feature. There is not necessarily a vertex in the crossing, so its probably two segments. I have attached the shapefile, if you want to have a look at it.
Niels-Peter -----Oprindelig meddelelse----- Fra: Lime, Steve D (DNR) [mailto:[email protected]] Sendt: 11. maj 2011 23:17 Til: Niels-Peter Jensen; [email protected] Emne: RE: [Spam] Re: [mapserver-users] Rendering line crossing iteslf To be clear, in your data example are there two segments or four? - Steve -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Niels-Peter Jensen Sent: Wednesday, May 11, 2011 12:55 PM To: [email protected] Subject: SV: [Spam] Re: [mapserver-users] Rendering line crossing iteslf Yes, I can't see any solutions, other doing something special in the crossings, or maybe exploding the theme into all segments, and create a layer for each segment. But that seems to be a troublesome way to get around the problem. The image examples I supplied, was made with ArcGIS. Here it's just outline definition on a line theme. Is there no way to do the same in Mapserver ? Niels-Peter -----Oprindelig meddelelse----- Fra: [email protected] [mailto:[email protected]] På vegne af Stephen Woodbridge Sendt: 11. maj 2011 16:07 Til: [email protected] Emne: [Spam] Re: [mapserver-users] Rendering line crossing iteslf Oops, right. brain not in gear yet :) On 5/11/2011 10:04 AM, thomas bonfort wrote: > ---------- Forwarded message ---------- > From: thomas bonfort<[email protected]> > Date: Wed, May 11, 2011 at 16:03 > Subject: Re: SV: [mapserver-users] Rendering line crossing iteslf > To: Stephen Woodbridge<[email protected]> > > > Steve, > That isn't the case. The first style of all the features are rendered > in a first phase, and the following ones are rendered in a second > phase, so the order is > > feature1->style1 > feature2->style1 > ... > featuren->style1 > feature1->style2 > ... > featuren->style2 > ... > ... > feature1->stylem > featuren->stylem > > without that, you'd get artifacts on road intersections. > > -- > thomas > > > > On Wed, May 11, 2011 at 15:47, Stephen Woodbridge > <[email protected]> wrote: >> Niels-Peter, >> >> I believe that you will need to split the line at the intersection >> into multiple lines to get the display that you want. Because you >> line just crosses itself there is no intersection there. If you split >> the line into multiple segments that there will be an intersection >> and mapserver should render it is desired. >> >> -Steve W >> >> On 5/11/2011 8:18 AM, Niels-Peter Jensen wrote: >>> >>> Hi Thomas >>> >>> The bridge was used as an anology. In fact, the line feature is a >>> bus route that crosses itself, and we just want to show where the >>> route passes through >>> an intersection. >>> >>> Niels-Peter >>> >>> >>> -----Oprindelig meddelelse----- >>> Fra: thomas bonfort [mailto:[email protected]] >>> Sendt: 11. maj 2011 13:56 >>> Til: Niels-Peter Jensen >>> Emne: Re: [mapserver-users] Rendering line crossing iteslf >>> >>> >>> On Wed, May 11, 2011 at 13:51, Niels-Peter Jensen<[email protected]> wrote: >>>> >>>> Hi Thomas >>>> >>>> Thanks for the quick answer. >>>> >>>> We cannot make the style work in the mapfile and have to place it >>>> in the symbol file. By the way, we are using Mapserver 5.4.2. >>>> >>>> But anyway, I don't think it solves our problem. >>>> We don't have any "bridge" in our line data, it is just a single >>>> line feature that crosses itself. >>> >>> then how can you distinguish the case of the bridge with the case of >>> the intersection ? applying the solution I proposed on all lines >>> will give incorrect cases everywhere you don't have a bridge, so it >>> would not be a possible solution. >>> >>> -- >>> thomas >>> >>>> >>>> Regards >>>> Niels-Peter >>>> >>>> >>>> -----Oprindelig meddelelse----- >>>> Fra: thomas bonfort [mailto:[email protected]] >>>> Sendt: 11. maj 2011 12:14 >>>> Til: Niels-Peter Jensen >>>> Cc: [email protected] >>>> Emne: Re: [mapserver-users] Rendering line crossing iteslf >>>> >>>> >>>> An undocumented and "not guaranteed to work in future versions" is >>>> to trick mapserver in not drawing the cached base style for bridge >>>> lines. As you are avoiding the line caching mechanism, you have to >>>> tweak the linecaps for the base style. >>>> >>>> CLASS >>>> EXPRESSION ([bridge]=1) >>>> STYLE >>>> END >>>> STYLE >>>> color black >>>> width 5 >>>> linecap butt >>>> END >>>> STYLE >>>> color yellow >>>> width 3 >>>> linecap round >>>> END >>>> STYLE >>>> color black >>>> width 1 >>>> END >>>> END >>>> >>>> I haven't tested this recently, so please keep in touch if this >>>> solves your problem or not. >>>> >>>> regards, >>>> thomas >>>> >>>> On Wed, May 11, 2011 at 11:40, Niels-Peter Jensen<[email protected]> >>>> wrote: >>>>> >>>>> Hi users >>>>> >>>>> We have a problem in rendering a route based on a line feature. >>>>> >>>>> When we use the common way to do that, by using two styles, with a >>>>> thick black line that defines an outline, and a thinner defying >>>>> the road center, we will not get the desired result. >>>>> >>>>> But I want to show where routes cross ("bridge" intersection), and >>>>> not as a "normal" intersection, see the attached examples. >>>>> >>>>> As there is no outline definition on linefeatures I can't se how >>>>> that can be done in a simple way. >>>>> >>>>> >>>>> Niels-Peter >>>>> I-GIS >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list [email protected] >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >>>>> >>>> >>>> >>> >>> _______________________________________________ >>> mapserver-users mailing list [email protected] >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >> mapserver-users mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
Renderproblem.rar
Description: Binary data
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
