Opened 19 years ago

Last modified 19 years ago

#1294 new defect

Shape drawing code converts circle layer units to map units

Reported by: jerry.pisk@… Owned by: jerry.pisk@…
Priority: high Milestone:
Component: MapServer C Library Version: 4.4
Severity: critical Keywords:
Cc:

Description

Shape drawing code converts between layer units and map units when drawing 
circles. But it does not do so for any other layer type. And since layers 
default to meters (instead of map units) circle layers are drawn way off.

Change History (3)

comment:1 by jerry.pisk@…, 19 years ago

Owner: changed from sdlime to jerry.pisk@…
Assigning to myself.

comment:2 by sdlime, 19 years ago

I've not had problems with this code, but then again I almost always use UTM 
projections. Are you talking about layers of TYPE CIRCLE?

Steve

comment:3 by jerry.pisk@…, 19 years ago

I should have clarified it a little more. This affects layers type CIRCLE and 
what was happening is that the radius was calculated as the difference between 
a center point and minx of the bounding box and then transformed from layer 
units to map units and to pixels. The problem with that was that layers 
default to meters, not map units, which was causing the radius to be off when 
map was in units other than meters. I removed the unit transformation, no 
other layer type was doing it and it was only done for the radius, not the 
bounding box.
Note: See TracTickets for help on using tickets.