Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dynamic pixels #196

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

Support dynamic pixels #196

artemp opened this issue Oct 11, 2011 · 4 comments

Comments

@artemp
Copy link
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
Copy link
Member Author

artemp commented Oct 11, 2011

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

m.pixel_size
(0.00028,0.00020)
}}}

@artemp
Copy link
Member Author

artemp commented Oct 11, 2011

[springmeyer] see also #389

@artemp
Copy link
Member Author

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
Copy link
Member

not actionable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants