Opened 14 years ago

Last modified 14 years ago

#3567 new defect

labels outside of extents

Reported by: greenwood Owned by: sdlime
Priority: normal Milestone:
Component: MapServer C Library Version: 5.6
Severity: normal Keywords:
Cc:

Description

Labels are being drawn well outside of the map extents and outside the extents of the data. Please notice the "Bechler River" and "Falls River" labels in the image below. http://www2.tetonwyo.org/gis/download/ZipFiles/label_bug.gif The map image is at a scale of approx 1:250,000 and the labels are approx 40,000 feet west of the westerly extent of the data and of the map file extents.

In some cases the problem is causing a server fault on a Windows 2003 server running mapserv 5.6.3 and 5.6.5. The problem did not exhibit itself in mapserv 5.2.

The mapext and imgext in the CGI request that is causing the problem are outside of the mapfile extents. Why am I requesting mapext and imgext outside of my data you may ask. The mapext and imgext are generated by OpenLayers, despite setting the OL bounds to match the MS extents.

A zip file with a minimal mapfile and data to produce the problem is here:

http://www2.tetonwyo.org/gis/download/ZipFiles/mapserv_label_bug.zip

The URL to reproduce the problem is the first commented line in the mapfile.

Thanks, Rich

Change History (3)

comment:1 by sdlime, 14 years ago

Are you sure this is Windows only? If so I have little chance of debugging. Let me know and I'll figure out how to reassign to one of the windows devs...

Steve

comment:2 by greenwood, 14 years ago

No, I didn't mean to imply that it is Windows only.

comment:3 by greenwood, 14 years ago

I can confirm that the problem exists in Linux here:

http://records.sublettewyo.com/cgi-bin/mapserv?map=/home/rgreenwood/mapserv_label_bug/test.map&mode=map&mapext=2240091.0600961+1540019.8288527+2601469.2752353+1733713.6562727&imgext=2240091.0600961+1540019.8288527+2601469.2752353+1733713.6562727&map_size=1181+633

I had to edit the test.map file to change the case of 'water' to 'Water' in the data clause.

I have not been able to create an example that consistently reproduces the server fault, but at least you can see the labels way outside of the extents.

Thanks, Rich

Note: See TracTickets for help on using tickets.