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

Searchmap CGI option busted from 6.2 onward... #5157

Closed
sdlime opened this issue Sep 1, 2015 · 2 comments
Closed

Searchmap CGI option busted from 6.2 onward... #5157

sdlime opened this issue Sep 1, 2015 · 2 comments

Comments

@sdlime
Copy link
Member

sdlime commented Sep 1, 2015

Searchmap is an option that uses the map extent of the map that would be created given an extent and size for search purposes. It's useful for creating imagemaps from query output where you need to match the imagemap to a MapServer generated image. Looks like it broke between the 6.0 and 6.2 releases which tells you how much it's used - I may be the only one. I'd propose fixing in 6.4 and 7.0.

Steve

@sdlime
Copy link
Member Author

sdlime commented Sep 1, 2015

Looks like the option and associated computations are fine, so the issue is in the template code - specifically related to msTransformShapeToPixelRound(). Turns out that a small change in that function to fix a loop counter exposed bad logic in the shpxy tag processing for points - the conversion from map to image coordinates was occurring twice - whoops.

sdlime added a commit that referenced this issue Sep 1, 2015
…oordinates with the shpxy tag was happening twice.
sdlime added a commit that referenced this issue Sep 1, 2015
…oordinates with the shpxy tag was happening twice.
sdlime added a commit that referenced this issue Sep 1, 2015
…oordinates with the shpxy tag was happening twice.
@sdlime
Copy link
Member Author

sdlime commented Sep 1, 2015

Fixed in 6.4, 7.0 and master.

@sdlime sdlime closed this as completed Sep 1, 2015
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

1 participant