<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18854"></HEAD>
<BODY>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>I have mapserver
5.4.2 installed.</FONT></SPAN></DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>I have two different
shape files, one renders properly the other only returns blank
images</FONT></SPAN></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>The debug log for
the one that does not work returns:</FONT></SPAN></DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>[Tue Jan 19 20:34:59
2010].212000 CGI Request 1 on process 1180<BR>[Tue Jan 19 20:34:59 2010].212000
mapserv(): Web application error. No way to generate map extent.<BR>[Tue Jan 19
20:34:59 2010].212000 msCalculateScale(): General error message. Invalid image
extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000.<BR>[Tue
Jan 19 20:34:59 2010].212000 msTileSetExtent (-13090872.991896, 6046512.903143)
(-13071381.549686, 6066004.345353)<BR>[Tue Jan 19 20:34:59 2010].227000
msDrawMap(): Layer 0 (SpokaneTrafficFlows), 0.000s<BR>[Tue Jan 19 20:34:59
2010].227000 msDrawMap(): Drawing Label Cache, 0.000s<BR>[Tue Jan 19 20:34:59
2010].227000 msDrawMap() total time: 0.015s<BR>[Tue Jan 19 20:34:59 2010].274000
msSaveImage() total time: 0.047s<BR>[Tue Jan 19 20:34:59 2010].274000 mapserv
request processing time (loadmap not incl.): 0.062s<BR>[Tue Jan 19 20:34:59
2010].274000 msFreeMap(): freeing map at 01A5AF00.<BR>[Tue Jan 19 20:34:59
2010].274000 freeLayer(): freeing layer at 020E4160.</FONT></SPAN></DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>the map file
is:</FONT></SPAN></DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>MAP
<BR> IMAGETYPE AGG <BR> SIZE 256 256
<BR> SHAPEPATH "/MapServerData/ShapeFiles/1"
<BR> IMAGECOLOR 255 255 255 <BR> TRANSPARENT
ON <BR> FONTSET "../../fonts/fonts.list" </FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>CONFIG PROJ_LIB
"c:\ms4w\proj\nad\" <BR>CONFIG MS_ERRORFILE "c:\ms4w\tmp\errors2.txt" <BR>DEBUG
5</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>
PROJECTION <BR> "init=epsg:4326"
<BR> END </FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>
OUTPUTFORMAT <BR> NAME 'AGG'
<BR> DRIVER AGG/PNG
<BR> IMAGEMODE RGB
<BR> END #Outputformat </FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>
LAYER <BR> NAME SpokaneTrafficFlows
<BR> DATA TrafficFlow_2007
<BR> STATUS ON
<BR> TYPE LINE </FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial> DEBUG
5</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial> CLASS
<BR> NAME
"classSpokaneTrafficFlows" </FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial>
STYLE
<BR>
COLOR 127 255 64
<BR>
OPACITY 50
<BR>
OUTLINECOLOR 255 128 64
<BR>
WIDTH 3 <BR>
END #style <BR> END #class
<BR> END #layer <BR>END #Map </FONT></SPAN></DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>running shp2img.exe
returns:</FONT></SPAN></DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>msLoadMap(): Image
handling error. Unable to initialize image</FONT></SPAN></DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>msCalculateScale():
General error message. invalid image extent ....</FONT></SPAN></DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>I get the same
results for shp2img on the working shapefile/map file.</FONT></SPAN></DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>THE FOLLOWING
WORKS:</FONT></SPAN></DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial>MAP
<BR>
<BR> IMAGETYPE
AGG
<BR> SIZE 256
256
<BR> SHAPEPATH "/MapServerData/ShapeFiles/1"
<BR> IMAGECOLOR 255 255
255
<BR> TRANSPARENT
ON
<BR> FONTSET
"../../fonts/fonts.list"
<BR>
<BR>CONFIG PROJ_LIB
"c:\ms4w\proj\nad\"
</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>
PROJECTION
<BR> "init=epsg:4326" <BR>
END
<BR>
<BR>
OUTPUTFORMAT
<BR> NAME
'AGG'
<BR> DRIVER AGG/PNG
<BR> IMAGEMODE RGB
<BR> END #Outputformat
<BR>
<BR>
LAYER
<BR> NAME
TxCounties
<BR> DATA
co48_d00
<BR> STATUS
ON
<BR> TYPE
Polygon
<BR>
<BR>
CLASS
<BR> NAME
"classTxCounties"
<BR>
<BR>
STYLE
<BR>
COLOR 0 255 0
<BR>
OPACITY
25
<BR>
OUTLINECOLOR 0 0 0
<BR> WIDTH
2
<BR> END
#style
<BR> END
#class
<BR> END
#layer
<BR>END #Map </FONT></SPAN></DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2 face=Arial>Anyone have any
idea's why this might not work in the first case? Or what else can I do to debug
the problem?</FONT></SPAN></DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=379360521-19012010><FONT size=2
face=Arial></FONT></SPAN> </DIV>
<DIV align=left><FONT size=2 face=Arial>Kent</FONT></DIV>
<DIV align=left>
<DIV align=left><FONT size=2 face=Arial></FONT></DIV><FONT size=2 face=Arial><A
href="mailto:kmorrison@advantrack.com"></A></FONT></DIV>
<DIV> </DIV></BODY></HTML>