Ticket #115 (assigned defect)

Opened 7 years ago

Last modified 5 years ago

[OGR] Problem with STYLEITEM AUTO and reprojection of units

Reported by: dmorissette Assigned to: dmorissette (accepted)
Priority: high Milestone:
Component: OGR Support Version: 4.0
Severity: normal Keywords:
Cc:

Description

Frank Warmerdam wrote:
> 
> However, now that I think about this, I am concerned that if PROJ is used to
> transform the spmap data from kilometers to meters the text height (expressed
> in km) will not be properly rescaled to go along with it.  If so, I doubt
> your mapfile will work properly even yet.  I will have to talk to Daniel about
> how to handle this.  I am not sure what can be done practically.
>

Change History

02/20/02 19:42:38 changed by dmorissette

  • status changed from new to assigned.
This could probably be handled in msOGRLayerGetAutoStyle()... in this
function we have access to the mapObj and the layerObj so we have access
to their projectionObj.  Assuming that we can ask PROJ for a units
conversion factor between the source and destination projection (when
they differ) then we could include the conversion factor in the value
passed to poStylePart->SetUnit() around line 1475.

I guess the next question is whether there is a call in PROJ to return a
units conversion factor between 2 projections?  I wonder if the PROJ
maintainer would know?  ;)

06/30/03 22:56:40 changed by dmorissette

  • version changed from 3.6 to 4.0.