That's how I did it, and it works well for me. The one with all 6 different types of roads also (I think) appreciates the indexing suggested. If I understand correctly it makes it even easier for Mapserver to pick the small amount of roads visible at your pictures. The one with 4 will be much smaller (We are speaking about only motorways to primary roads, and they are not many), so it works rather well also without extra indexing. But I'm no expert.
/Lars -----Ursprungligt meddelande----- Från: [email protected] [mailto:[email protected]] För Raivo Alla Skickat: 22 October 2009 07:47 Till: Pavel Iacovlev; [email protected] Ämne: Re: [mapserver-users] roadlines issue Thank you, a good point! However, this simplyfied example is for 3 layers, actually there is about 8 layers and some of them are showing up a little bit later (not in that scale range). So I guess the best would be to create separate shapes based on scale ranges, ie 1:50000 to 1:24000 the map will show 4 different types of roads from one shapefile and from 1:24000 to 1:10000 6 different types of roads from another shape? Raivo On Wed, Oct 21, 2009 at 4:52 PM, Pavel Iacovlev <[email protected]> wrote: > Yes http://mapserver.org/optimization/vector.html this is described > correctly but it's not your case because you are NOT filtering SOME of > the data you just read ALL the data from 2 layers. I sort if you use > ALL the data from that layer there is no point in splitting. > > On Wed, Oct 21, 2009 at 2:30 PM, Raivo Alla <[email protected]> wrote: >> Hey, >> >> thank You. I was thinking that pre-splitting large datasets would be a >> good optimization >> step as suggested here: http://mapserver.org/optimization/vector.html >> >> >> Have to try and compare ;) >> Raivo >> >> On Wed, Oct 21, 2009 at 11:45 AM, Pavel Iacovlev >> <[email protected]> wrote: >>> First if you have 2 layers for roads like highways.shp and >>> secondary.shp (for example) if you make one shape roads.shp file with >>> the a field "type" performance will actually improve. >>> >>> You can see a great example how to render street data (openstreetmap >>> data in this case) here: >>> http://trac.osgeo.org/mapserver/wiki/RenderingOsmData >>> >>> On Wed, Oct 21, 2009 at 10:16 AM, Raivo Alla <[email protected]> wrote: >>>> Hello, >>>> >>>> the problem I have right now with mapserver is how to display roads >>>> that must be displayed from different layers in a mapfile, >>>> but should have nice joining with each other. Problem is shown here >>>> (red arrows): >>>> http://picasaweb.google.com/snaperski/Ort#5394941894576868946 >>>> Desired situation with using multiple mapserver layers is marked with red >>>> ring. >>>> >>>> If I would use just one massive shapefile and take it as a datasource >>>> in one layer only (instead using multiple shapefiles/layers >>>> drawing highways, streets), then performance will suffer. >>>> >>>> Is there any solution to this, ie declaring DATA kayword in a CLASS >>>> section? :) Or something so simple that I couldnt think of... >>>> >>>> >>>> Humbly yours, >>>> Raivo >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> [email protected] >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> >>> >>> >>> >>> -- >>> http://iap.md, The future is open >>> >> > > > > -- > http://iap.md, The future is open > _______________________________________________ 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
