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

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

Comments

Projects
None yet
1 participant
@szekerest
Member

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

Merge pull request #5031 from szekerest/issue5028
Fix for the OGR autostyle unit calculation (#5028)
@szekerest

This comment has been minimized.

Show comment
Hide comment
@szekerest

szekerest Nov 6, 2014

Member

Fixed

Member

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