[Tilesathome] Bug with striped rendering
Knut Arne Bjørndal
bob+osm at cakebox.net
Mon Oct 13 22:33:20 BST 2008
On Mon, Oct 13, 2008 at 05:16:23PM -0400, Matthias Julius wrote:
> Knut Arne Bjørndal <bob+osm at cakebox.net> writes:
>
> > On Mon, Oct 13, 2008 at 02:49:50PM -0400, Matthias Julius wrote:
> >
> >> It seems like SVG coordinates are measured from the top and not from
> >> the bottom. So switching these around has fixed the issue.
> >
> > I think that depends a bit on who you are asking, at least inkscape
> > and batik have two different null points (which is the reason for the
> > coordinatebox module)
>
> According to the standard
> (http://www.w3.org/TR/SVG/coords.html#InitialCoordinateSystem) (0, 0)
> is in the upper left corner of an SVG. It would be quite confusing if
> every application defined that differently.
Standards are a nice thing, but... From man inkscape:
-a x0:y0:x1:y1, --export-area=x0:y0:x1:y1
In PNG export, set the exported area in SVG user units (anony‐
mous length units normally used in Inkscape SVG). The default
is to export the entire document canvas. The point (0,0) is
the lower-left corner.
> What is different between Inkscape and Batik is that Inkscape wants
> both coordinates for both upper left and lower right corners and Batik
> wants upper left corner, width and height of the cut box.
Nope, inkscape wants a different coordinate system, which is the cause
of some really ugly code which I've now hidden away inside
CoordinateBox.pm.
> I actually did not test this with Batik. Can you or someone else
> please confirm this works with Batik as well?
I'm running a render on 2110 1178 now, but won't wait for it to
complete since I'm on my way to bed.
--
Knut Arne Bjørndal
aka Bob Kåre
bob+osm at cakebox.net
bobkare at irc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4167 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20081013/c6ffcfc5/attachment.bin>
More information about the Tilesathome
mailing list