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

Resolution factor is not taken into account with OGR auto style units #5028

Closed
szekerest opened this issue Nov 5, 2014 · 1 comment
Closed

Resolution factor is not taken into account with OGR auto style units #5028

szekerest opened this issue Nov 5, 2014 · 1 comment
Assignees
Milestone

Comments

@szekerest
Copy link
Member

@szekerest szekerest commented Nov 5, 2014

Therefore the label sizes specified in ground units are not scaling correctly.

OGR_ST_SetUnit(hStylePart, OGRSTUPixel, map->cellsize_72.0_39.37);

should be

OGR_ST_SetUnit(hStylePart, OGRSTUPixel,
map->cellsize_map->resolution/map->defresolution_72.0*39.37);

in mapogr.cpp.

@szekerest szekerest self-assigned this Nov 5, 2014
@szekerest szekerest added this to the 7.0 Release milestone Nov 5, 2014
szekerest added a commit to szekerest/mapserver that referenced this issue Nov 6, 2014
szekerest added a commit that referenced this issue Nov 6, 2014
Fix for the OGR autostyle unit calculation (#5028)
@szekerest
Copy link
Member Author

@szekerest szekerest commented Nov 6, 2014

Fixed

@szekerest szekerest closed this Nov 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.