Hi,
the shapefile need to be inside the SHAPEPATH folder or you should alter
SHAPEPATH.
also try the mapfile with mapserver (shp2img -m mapfile -o outputimage
-all_debug 3) and see what happens (the log should point  the problem).

[]'s
Luigi Castro Cardeles


2010/2/2 Matías Manuel Grandi <matiasgra...@gmail.com>

> (sorry for my english)
> I've been testing pmapper for a while, with the demo map, and everything
> worked fine (pmapper 4.0 ms4w version).
> So I decided to set up my own map.
> I opened a shp file with Qgis and export the map file (see below).
> I copied the extent data  form wgis too.
> When I open pmapper no map were displayed on the browser, and the text
> "loading..." didn't dissapear form screen.
>
> The map file is:
>
> MAP
> >     EXTENT   -59.7177 -35.4223 -57.7094 -33.8073
> >     UNITS dd
> >     SIZE 600 500
> >     SHAPEPATH "../../../pmapper_demodata"
> >     SYMBOLSET "../common/symbols/symbols-pmapper.sym"
> >     FONTSET "../common/fonts/msfontset.txt"
> >     RESOLUTION 96
> >     IMAGETYPE png
> >     INTERLACE OFF
> >     #CONFIG "PROJ_LIB" "C:/proj/nad/"
> >     PROJECTION
> >         'proj=longlat'
> >         'ellps=intl'
> >         'no_defs'
> >         ''
> >     END
> >
> > OUTPUTFORMAT
> >   NAME "png"
> >   DRIVER "GD/PNG"
> >   MIMETYPE "image/png"
> >   IMAGEMODE RGB
> >   FORMATOPTION  INTERLACE=OFF
> >   TRANSPARENT OFF
> >   EXTENSION "png"
> > END
> >
> > OUTPUTFORMAT
> >   NAME "png8"
> >   DRIVER "GD/PNG"
> >   MIMETYPE "image/png"
> >   IMAGEMODE PC256
> >   FORMATOPTION  INTERLACE=OFF
> >   TRANSPARENT OFF
> >   EXTENSION "png"
> > END
> >
> > OUTPUTFORMAT
> >   NAME "jpeg"
> >   DRIVER "GD/JPEG"
> >   MIMETYPE "image/jpeg"
> >   IMAGEMODE RGB
> >   FORMATOPTION "QUALITY=70"
> >   EXTENSION "jpg"
> > END
> >
> > OUTPUTFORMAT
> >   NAME GTiff
> >   DRIVER "GDAL/GTiff"
> >   MIMETYPE "image/tiff"
> >   IMAGEMODE RGB
> >   #FORMATOPTION "TFW=YES"
> >   #FORMATOPTION "COMPRESS=PACKBITS"
> >   EXTENSION "tif"
> > END
> >
> > OUTPUTFORMAT
> >   NAME imagemap
> >   MIMETYPE "text/html"
> >   FORMATOPTION SKIPENDTAG=OFF
> >   DRIVER imagemap
> > END
> >
> > #
> > # Start of web interface definition
> > #
> > WEB
> >   TEMPLATE "map.html"
> >   IMAGEPATH "/ms4w/tmp/ms_tmp/"
> >   IMAGEURL "/ms_tmp/"
> >   METADATA
> >     #"MAPFILE_ENCODING" "ISO-8859-1"
> >     #"ows_title"     "WMS Demo Server"
> >     #"ows_onlineresource" "http://wms.yourserver.org?owskey=test&";
> >     #"ows_srs"       "EPSG:3035 EPSG:4326"
> >   END  # Metadata
> > END  # Web
> >
> > #
> > # Start of Reference map definition
> > #
> > REFERENCE
> >   EXTENT -59.7177 -35.4223 -57.7094 -33.8073 #2200000 1400000 8000000
> > 5400000
> >   IMAGE "../../images/reference.png"
> >   SIZE 199 149
> >   COLOR -1 -1 -1
> >   OUTLINECOLOR 255 0 0
> > END  # Reference
> >
> > LEGEND
> > END
> >
> > #
> > # Start of ScaleBar definition
> > #
> > SCALEBAR
> >   STATUS off
> >   TRANSPARENT off
> >   INTERVALS 4
> >   SIZE 200 3
> >   UNITS kilometers
> >   COLOR 250 250 250
> >   OUTLINECOLOR 0 0 0
> >   BACKGROUNDCOLOR 100 100 100
> >   STYLE 0
> >   POSTLABELCACHE true
> >   LABEL
> >     COLOR 0 0 90
> >     #OUTLINECOLOR 200 200 200
> >     SIZE small
> >   END  # Label
> > END  # Reference
> >
> > # SYMBOLS USED IN PMAPPER
> > # - 'circle' always necessary (used e.g. for highlight)
> > # - 'square' used in currecnt map file
> > # Symbols can also be defined via tag SYMBOLSET (see above)
> > Symbol
> >   Name 'circle'
> >   Type ELLIPSE
> >   Filled TRUE
> >   Points
> >     1 1
> >   END
> > END
> >
> > Symbol
> >   Name 'square'
> >   Type VECTOR
> >   Filled TRUE
> >   Points
> >     0 1
> >     0 0
> >     1 0
> >     1 1
> >     0 1
> >   END
> > END
> >
> >
> > #================== START OF LAYER SECTION =====================#
> > LAYER
> >     NAME 'departamentos'
> >     TYPE POLYGON
> >     DATA 'departamentos.shp'
> >     METADATA
> >       'wms_title' 'departamentos'
> >     END
> >     STATUS DEFAULT
> >     TRANSPARENCY 100
> >     PROJECTION
> >     'proj=longlat'
> >     'ellps=intl'
> >     'no_defs'
> >     ''
> >     END
> >     CLASS
> >        NAME 'departamentos'
> >        STYLE
> >          SYMBOL 0
> >          SIZE 2
> >          OUTLINECOLOR 0 0 0
> >          COLOR 97 136 146
> >        END
> >     END
> > END
> > END  #Map
> >
>
> Thanks in advance!!!
> Mato.-
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to