MapScript Bug

Matthew Pulis mpulis at GMAIL.COM
Sun Nov 18 12:40:19 EST 2007


Hi Again,

Just would like to thank nhv / bitner / chippy for helping me.

The problem was that I was setting the LAYER STATUS to ON. Thanks to
them for pointing out that STATUS ON  does not mean Always-On but only
Turn-On-If-Asked.. so to always have a LAYER which is shown better put
DEFAULT.

Thanks again

On Nov 18, 2007 6:06 PM, Matthew Pulis <mpulis at gmail.com> wrote:
> Hi,
>
> I am trying to load sample.map using :
> http://yancho.no-ip.org/~yancho/cgi-bin/mapserv?mode=map&map=/home/yancho/public_html/nc/sample.map
> but there is no image being displayed, just a white 800x600 box.
>
> In the error log there is written :
>
> Sun Nov 18 17:19:56 2007,28480,10.0.0.1,MS,3,623351.784641
> 212016.000000 664334.215359 242740.000000,-1.000000 -1.000000,,normal
> execution
>
> There is no image being created in the /tmp folder (and it has rights
> .. it used to create until I started with this new mapscript)
>
> The script can be found here :
> #MAP File created by yancho
>
> MAP
>       IMAGETYPE      PNG
>       EXTENT         626522 212016 661164 242740
>       SIZE           800 600
>       SHAPEPATH      "/home/yancho/public_html/nc/"
>       IMAGECOLOR     255 255 255
>
>
>     #STREETS  =================================================
>       LAYER
>                NAME         streets
>                DATA         streets
>                STATUS       ON
>                TYPE         LINE
>
>                CLASS
>                     NAME       "Streets"
>                     STYLE
>                          COLOR    232 232 232
>                     END
>                END
>       END
>     #FINISH OF STREETS =============================================
>
>     #HOSPITALS ==================================================
>     #-Symbol
>         SYMBOL
>               NAME "Showing_Hospitals"
>               TYPE vector
>               POINTS
>                 4 0
>                 4 8
>                 -99 -99
>                 0 4
>                 8 4
>               END
>         END
>     #-Hospitals Layer
>      LAYER
>         NAME         hospitals
>         DATA         hospitals
>         STATUS       ON
>         TYPE         POINT
>
>         CLASS
>             NAME       "Hospitals"
>             STYLE
>               COLOR    255 67 54
>               SYMBOL   "Showing_Hospitals"
>             END
>         END
>      END
>
>     #FINISH OF HOSPITALS ============================================
>
>     #FIRENEGINES =====================================================
>     #-Symbol
>             SYMBOL
>                 NAME "fire"
>                 TYPE vector
>                 POINTS
>                   0 8
>                   4 0
>                   8 8
>                   0 8
>                 END
>             END
>
>     #-Firengines Layer
>       LAYER
>           NAME         firestations
>           DATA         firestations
>           STATUS       ON
>           TYPE         POINT
>
>           CLASS
>                NAME       "Fire_Engines"
>                STYLE
>                     COLOR    03 100 24
>                     SYMBOL   "fire"
>                END
>           END
>       END
>
>     #FINISH OF FIRESTATIONS ===================================================
>
>
>     #MAJORROADS ==============================================================
>       LAYER
>             NAME         majorroads
>             DATA         majorroads
>             STATUS       ON
>             TYPE         LINE
>
>             CLASS
>                  NAME       "Major Roads"
>                  STYLE
>                       COLOR    132 132 255
>                  END
>             END
>       END
>     #FINISH OF MAJORROADS
>
>     #RAILROADS ==================================================================
>       LAYER
>             NAME         railroads
>             DATA         railroads
>             STATUS       OFF
>             TYPE         LINE
>
>             CLASS
>                  NAME       "Rail Roads"
>                  STYLE
>                       COLOR    200 100 23
>                  END
>             END
>       END
>     #FINISH OF RAILROADS =======================================================
>
>
>     #======================================================================
>     #======================================================================
>
>     WEB
>         MINSCALE 1000
>         MAXSCALE 1550000
>         HEADER templates/header.html
>         FOOTER templates/footer.html
>         TEMPLATE "index.html"
>         IMAGEPATH "/home/yancho/public_html/tmp/"
>         IMAGEURL "/~yancho/tmp/"
>         LOG "/home/yancho/public_html/tmp/error.log"
>
>         METADATA
>                 WMS_TITLE "North Carolina Data Set"
>                 WMS_ABSTRACT "This is a MapServer representation of my data"
>                 WMS_ACCESSCONSTRAINTS "none"
>                 WMS_ONLINERESOURCE "http://localhost/~yancho/nc/index.html"
>                 WMS_SRS "EPSG:32119"
>         END
>
>     END
>
> END #OF MAP
>
> Or pastebinned here : http://pastebin.com/m48fd6a0b
>
> Any help to fix this bug would be extremely appreciated :)
>
> Thanks beforehand.
>
> Matthew
>
>
>
>
> --
> Matthew Pulis
> URL : http://www.solutions-lab.net
> MSN : pulis_matthew[@]hotmail.com
> ICQ : 145951110
> Skype : solutions-lab.net
>



-- 
Matthew Pulis
URL : http://www.solutions-lab.net
MSN : pulis_matthew[@]hotmail.com
ICQ : 145951110
Skype : solutions-lab.net



More information about the mapserver-users mailing list