Skip to content

Support dynamic pixels #196

Closed
artemp opened this Issue Oct 11, 2011 · 4 comments

2 participants

@artemp
Mapnik member
artemp commented Oct 11, 2011

the assumption of '0.00028' meter pixel is based on the OGC SLD spec and assuming a screen ppi of around 90.1 pixels per inch, which of course is not always the case depending on screen resolution/size. So we need to properly investigate exposing to the user the ability to set this option.

source:trunk/src/scale_denominator.cpp#L37

{{{

from mapnik import Map
m= Map(256,256)
m.scale_denominator
-8834880.2216889616
m.pixel_size # in units of projection
0.00028
m.pixel_size = 0.00030
m.scale_denominator() # would change...
}}}

@artemp
Mapnik member
artemp commented Oct 11, 2011

[artem] we shouldn't assume that pixels are square :
{{{

m.pixel_size
(0.00028,0.00020)
}}}

@artemp
Mapnik member
artemp commented Oct 11, 2011

[springmeyer] see also #389

@artemp
Mapnik member
artemp commented Oct 11, 2011

[springmeyer] Latest SLD spec is now called 'Symbol Encoding' and can be downloaded (1.1.0) from: http://www.opengeospatial.org/standards/symbol

@springmeyer
Mapnik member

not actionable

@springmeyer springmeyer closed this Sep 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.