#835 closed defect (fixed)
cannot create rectObj in image units
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-SWIG | Version: | 4.3 |
Severity: | normal | Keywords: | |
Cc: |
Description
The mapObj.zoomRect methods requires a rectangle in image units. Now, it is the mapserver convention that (minx, miny) is the lower left corner of a rectangle and that (maxx, maxy) is the upper right corner regardless of whether we are in map or image units. Because of this, an image rectangle will have maxy < miny. We are currently raising an exception on the creation of a rectangle with maxy < miny and this effectively forbids rects in image units. A possible solution: an optional flag as fifth argument to the rectObj constructor that indicates we are trying to creat a rect in image units. Is there a symbol we can reuse?
Change History (2)
Note:
See TracTickets
for help on using tickets.