[Tilesathome] oneway=-1 generating errors

Brent Easton b.easton at exemail.com.au
Wed Oct 31 23:33:08 GMT 2007


Thanks Dodi,

That has fixed the problem. I have commited those changes to Z16 and Z17 so that at least the SVG being generated is consistent. If you can improve on the oneway handling, please go for it.

I have also committed your latest Alpha 4 version of Osmarender.xsl as there have been no negative comments against using it, and it certainly works.

Thanks for all your work. I will keep testing.

I
Regards,
Brent.

*********** REPLY SEPARATOR  ***********

On 31/10/2007 at 10:14 PM Dodi  wrote:

>Hi Brent,
>
>it looks like we dont have svg:marker marker-otherway-end defined in 
>osm-map-features-z16/17.xml.
>
>here are markers for marker-otherway-end (copying here both
>other-way-start 
>and marker-otherway-end from older map-feratures.xml file)...
>
>    <svg:marker id="marker-otherway-start"   viewBox="0 0 10 10"
>        refX="-30px" refY="5px" markerUnits="userSpaceOnUse"
>fill='#FFFFFF' 
>stroke-width='1px'
>        stroke='#000000' markerWidth="1px" markerHeight="1px"
>orient="auto">
>      <svg:path d="M 10,4 L 4,4 L 4,2 L 0,5 L 4,8 L 4,6 L 10,6 z" />
>    </svg:marker>
>
>    <svg:marker id="marker-otherway-end" viewBox="0 0 10 10"
>        refX="30px" refY="5px" markerUnits="userSpaceOnUse" fill='#FFFFFF' 
>stroke-width='1px'
>        stroke='#000000' markerWidth="1px" markerHeight="1px"
>orient="auto">
>      <svg:path d="M 10,4 L 4,4 L 4,2 L 0,5 L 4,8 L 4,6 L 10,6 z" />
>    </svg:marker>
>
>but ... this is an old way how to do oneways ...better way is to adapt 
>"oneway-casing oneway-casing-x" and "oneway-core oneway-core-x" style for 
>"otherway"-ness ;)
>
>in your case... you need only to add these svg:marker-s  into 
>osm-map-features-z16.xml and osm-map-features-z17.xml near other 
>svg:marker-s ...let me know if problem persists, i will look into it
>deeper 
>:)
>
>About booking in osmarender: I have no SVN commit permission (ok, not
>asked 
>for it yet :S), but anyone who has - can do it...
>
>and in addition, I have developed(adapted) some small thigs usable for t at h 
>client (waycleanup.pl and  tile antialiasing 
>http://wiki.openstreetmap.org/index.php/Image:Tile_antialiasing.png ) ... 
>these are also available for incorporation into existing code... but only
>if 
>community like it...
>
>Dodi
>
>----- Original Message ----- 
>From: "Brent Easton" <b.easton at exemail.com.au>
>To: "Dodi" <dodi at moonbase.sk>
>Cc: <tilesathome at openstreetmap.org>
>Sent: Wednesday, October 31, 2007 9:18 PM
>Subject: oneway=-1 generating errors
>
>
>Hi Dodi,
>
>Another problem with your latest Osmarender and Batik.
>
>The tag "oneway=-1", which has been reported as not rendering, is
>generating 
>invalid SVG for Zoom 16 & 17. I think this is a problem in the standard 
>Osmarender also.
>
>The Z16 xml includes:
>
> <rule e="way" k="oneway" v="-1">
>  <line class="otherway" />
> </rule>
>
> .otherway {
>  fill: none;
>  stroke: red;
>  stroke-width: 2px;
>  stroke-opacity: 0;
>  /* marker-start: url(#marker-otherway-start); */
>   marker-end: url(#marker-otherway-end);
>  }
>
>The error generated is:
>
>"file:/C:/tilesAtHome/tmp/output-3716-z16.svg#marker-otherway-end"
>specified on the element <path> - may be a problem of 'id'
>
>Nothing seems to generate marker-otherway-end' in the output.
>
>Regards,
>Brent.
>
>PS. Please get your version of Osmarender booked in soon, it is still far 
>better than the existing.
>
>Regards,
>Brent.
>
>
>
>
>
>
>____________________________________________________________
>Brent Easton
>Analyst/Programmer
>University of Western Sydney
>Email: b.easton at uws.edu.au
>
>
>
>-- 
>No virus found in this incoming message.
>Checked by AVG Free Edition. 
>Version: 7.5.503 / Virus Database: 269.15.16/1102 - Release Date: 31/10/2007 4:38 PM


____________________________________________________________
Brent Easton                       
Analyst/Programmer                               
University of Western Sydney                                   
Email: b.easton at uws.edu.au





More information about the Tilesathome mailing list