On Fri, Jul 31, 2015 at 6:31 PM, François Stephany < tulipe.mouta...@gmail.com> wrote:
> Hi there, > > I'm trying to import an SVG file describing the provinces of Belgium in > Roassal. > I've cleaned an SVG file found on wikipedia and trying to import it. > > I'm trying to imitate the way it is done with Countries. So: > > RTMapBuilder class>>provincesOfBelgium >> ^ #(#antwerp #brussels #eastFlanders #flemishBrabant #hainaut #liege >> #limburg #luxembourg #namur #walloonBrabant #westFlanders) >> > > and implemented to corresponding SVG paths. Here's one example: > > RTSVGPath class>> antwerp >> ^'m 177.419,25.0693 1.379,-3.5593 -2.986,-1.3778 -3.33,0.5742 >> -0.114,-3.1001 -4.019,-4.0187 1.492,-5.9704 -2.181,-2.8706 -1.952,-0.2298 >> -1.034,-1.2628 -2.411,5.1667 -3.673,3.7892 -3.101,-2.067 -5.396,1.378 >> -2.068,-1.8371 4.479,-0.9188 0.345,-5.1667 -6.2,-2.1815 -4.938,5.741 >> 0.114,2.8704 -8.611,-0.574 1.264,-5.5112 -5.397,0 -6.43,3.4444 1.263,4.5929 >> 2.411,2.7555 -1.492,2.6409 -4.478,-0.6891 0.115,-2.7555 -6.43,0.3443 >> 0,2.4112 2.296,0.5743 -0.345,5.5112 3.904,1.0336 -3.1,3.3295 3.056,7.4863 >> 0.504,5.9475 -7.923,0.2296 -2.985,3.1002 1.722,1.837 -0.114,3.5595 >> 2.889,0.4893 3.352,-0.9423 7.038,4.5375 3.704,-0.5553 1.759,1.7593 >> 3.149,-1.7593 4.075,2.1297 2.963,-3.6118 11.112,-1.7592 0.092,3.3337 >> 11.576,-3.6113 1.204,-3.0562 5.001,-0.8332 2.129,-3.8894 4.723,-0.7409 >> 0.741,-1.9448 2.223,0.8336 1.481,-0.8336 0.186,-4.9079 -4.075,-2.0373 >> 1.605,-5.4063 z'. > > Apparently the path parser doesn't conform to specs? in the code I see a nice comment "The description of SVG path, says that M and m may accept more than one coordinates. In practices, this is rarely the case. " This also applies for other commands that should support multiple coordinates. anyway, try this (I made all line-to commands explicit): 'm 177.419,25.0693 l 1.379,-3.5593 l -2.986,-1.3778 l -3.33,0.5742 l -0.114,-3.1001 l -4.019,-4.0187 l 1.492,-5.9704 l -2.181,-2.8706 l -1.952,-0.2298 l -1.034,-1.2628 l -2.411,5.1667 l -3.673,3.7892 l -3.101,-2.067 l -5.396,1.378 l -2.068,-1.8371 l 4.479,-0.9188 l 0.345,-5.1667 l -6.2,-2.1815 l -4.938,5.741 l 0.114,2.8704 l -8.611,-0.574 l 1.264,-5.5112 l -5.397,0 l -6.43,3.4444 l 1.263,4.5929 l 2.411,2.7555 l -1.492,2.6409 l -4.478,-0.6891 l 0.115,-2.7555 l -6.43,0.3443 l 0,2.4112 l 2.296,0.5743 l -0.345,5.5112 l 3.904,1.0336 l -3.1,3.3295 l 3.056,7.4863 l 0.504,5.9475 l -7.923,0.2296 l -2.985,3.1002 l 1.722,1.837 l -0.114,3.5595 l 2.889,0.4893 l 3.352,-0.9423 l 7.038,4.5375 l 3.704,-0.5553 l 1.759,1.7593 l 3.149,-1.7593 l 4.075,2.1297 l 2.963,-3.6118 l 11.112,-1.7592 l 0.092,3.3337 l 11.576,-3.6113 l 1.204,-3.0562 l 5.001,-0.8332 l 2.129,-3.8894 l 4.723,-0.7409 l 0.741,-1.9448 l 2.223,0.8336 l 1.481,-0.8336 l 0.186,-4.9079 l -4.075,-2.0373 l 1.605,-5.4063 z' Is there a README somehwere or the original file that was used to generate > the world map of the examples? > The chapter for MapBuilder hasn't been done yet, but it is planned. :) Peter