<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">Hi<br><br>I am using shp2img to test my mapfile.. The functions runs and returns no error to the console window but the output image file generated is only 1K in size and shows a vertical line 2x1 pixels, not the expected output.<br><br>Can anyone give me some help in getting this to work<br><br>Derek<br><br>This is my command line<br>shp2img.exe -m C:\ms4w\apps\dnc2.map -o C:\ms4w\apps\test.png -all_debug 5<br><br>and its debug output is<br>[Thu Jul 24 10:54:45 2008].750000 msOGRFileOpen(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030)...<br>[Thu Jul 24 10:54:45 2008].750000 OGROPen(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030)<br>[Thu Jul 24 10:54:46 2008].156000 msConnPoolRegister(coastl@ecr(*)_line,gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D25AE8)<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileWhichShapes:
Setting spatial filter to -180.000000 -119.899833 180.000000 119.899833<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=0, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=1, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=2, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=3, tile=0<br>[Thu Jul 24 10:54:46 2008]..156000 msOGRFileNextShape: Returning shape=4, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=5, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=6, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=7, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=8, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=9, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape:
Returning shape=10, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=11, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=12, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=13, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=14, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=15, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=16, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=17, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=18, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=19, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=20, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=21, tile=0<br>[Thu Jul 24
10:54:46 2008].156000 msOGRFileNextShape: Returning shape=22, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=23, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=24, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=25, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=26, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=27, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=28, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=29, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=30, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=31, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=32, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape:
Returning shape=33, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=34, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=35, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=36, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=37, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=38, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=39, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=40, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=41, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=42, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=43, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=44, tile=0<br>[Thu Jul 24
10:54:46 2008].156000 msOGRFileNextShape: Returning shape=45, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=46, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=47, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=48, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=49, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=50, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=51, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=52, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=53, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=54, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=55, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape:
Returning shape=56, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=57, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=58, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=59, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=60, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=61, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=62, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=63, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=64, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=65, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=66, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=67, tile=0<br>[Thu Jul 24
10:54:46 2008].156000 msOGRFileNextShape: Returning shape=68, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=69, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=70, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=71, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=72, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=73, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=74, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=75, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=76, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=77, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=78, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape:
Returning shape=79, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=80, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=81, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=82, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=83, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=84, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=85, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=86, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=87, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=88, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=89, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=90, tile=0<br>[Thu Jul 24
10:54:46 2008].156000 msOGRFileNextShape: Returning shape=91, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=92, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=93, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=94, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=95, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=96, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=97, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=98, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=99, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=100, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning shape=101, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape:
Returning shape=102, tile=0<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileNextShape: Returning MS_DONE (no more shapes)<br>[Thu Jul 24 10:54:46 2008].156000 msOGRLayerClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030).<br>[Thu Jul 24 10:54:46 2008].156000 msOGRFileClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,7).<br>[Thu Jul 24 10:54:46 2008].156000 msConnPoolRelease(coastl@ecr(*)_line,gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D25AE8)<br>[Thu Jul 24 10:54:46 2008].156000 msConnPoolClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D25AE8)<br>[Thu Jul 24 10:54:46 2008].171000 msDrawMap(): Layer 0 (coastl@ecr(*)_line), 0.421s<br>[Thu Jul 24 10:54:46 2008].171000 msOGRFileOpen(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030)...<br>[Thu Jul 24 10:54:46 2008].171000 OGROPen(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030)<br>[Thu Jul 24 10:54:46 2008].484000 msConnPoolRegister(hydarea@hyd(*)_area,gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D80B40)<br>[Thu Jul 24
10:54:46 2008].484000 msOGRFileWhichShapes: Setting spatial filter to -180..000000 -119.899833 180.000000 119.899833<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=0, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=1, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=2, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=3, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=4, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=5, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=6, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=7, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=8, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=9, tile=0<br>[Thu Jul 24
10:54:46 2008].484000 msOGRFileNextShape: Returning shape=10, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=11, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=12, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=13, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=14, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=15, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=16, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=17, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=18, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=19, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape: Returning shape=20, tile=0<br>[Thu Jul 24 10:54:46 2008].484000 msOGRFileNextShape:
Returning shape=21, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=22, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=23, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=24, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=25, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=26, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=27, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=28, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=29, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=30, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=31, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=32, tile=0<br>[Thu Jul 24
10:54:46 2008].500000 msOGRFileNextShape: Returning shape=33, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=34, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=35, tile=0<br>[Thu Jul 24 10:54:46 2008].500000 msOGRFileNextShape: Returning shape=36, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=37, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=38, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=39, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=40, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=41, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=42, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=43, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape:
Returning shape=44, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=45, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=46, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=47, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=48, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=49, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=50, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=51, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=52, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=53, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=54, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=55, tile=0<br>[Thu Jul 24
10:54:46 2008].515000 msOGRFileNextShape: Returning shape=56, tile=0<br>[Thu Jul 24 10:54:46 2008].515000 msOGRFileNextShape: Returning shape=57, tile=0<br>[Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=58, tile=0<br>[Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=59, tile=0<br>[Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=60, tile=0<br>[Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=61, tile=0<br>[Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning shape=62, tile=0<br>[Thu Jul 24 10:54:46 2008].531000 msOGRFileNextShape: Returning MS_DONE (no more shapes)<br>[Thu Jul 24 10:54:46 2008].531000 msOGRLayerClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030).<br>[Thu Jul 24 10:54:46 2008].531000 msOGRFileClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,13).<br>[Thu Jul 24 10:54:46 2008].531000
msConnPoolRelease(hydarea@hyd(*)_area,gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D80B40)<br>[Thu Jul 24 10:54:46 2008].531000 msConnPoolClose(gltp:/vrf/C:/ms4w/apps/data/DNC13/H1316030,01D80B40)<br>[Thu Jul 24 10:54:46 2008].531000 msDrawMap(): Layer 1 (hydarea@hyd(*)_area), 0.360s<br>[Thu Jul 24 10:54:46 2008].531000 msDrawMap(): Drawing Label Cache, 0.000s<br>[Thu Jul 24 10:54:46 2008].531000 msDrawMap() total time: 0.781s<br>[Thu Jul 24 10:54:46 2008].546000 msFreeMap(): freeing map at 01365A48.<br><br><br></div><br>
<hr size=1>
Not happy with your email address?
<br> <a href="http://uk.docs.yahoo.com/ymail/new.html"> Get the one you
really want</a> - millions of new email addresses available now at <a
href="http://uk.docs.yahoo.com/ymail/new.html"> Yahoo!</a></body></html>