[mapserver-users] no PNG file created

mastre mastre at makina-corpus.com
Thu May 23 02:00:16 PDT 2002


The stand alone mapserver CGI seems to work fine.
Here a sample of my .map
Result with gif output and mapserver 3.5 can be seen here: http://maps.makina-corpus.com/localis/

$samplemap =<<<_END_
MAP
NAME AQUITAINE
STATUS ON
SIZE $resx $resy
EXTENT $extent
UNITS METERS
IMAGETYPE PNG
SHAPEPATH "$fpath/tmp/data"
IMAGECOLOR 255 255 255
interlace on
transparent off
# Start of web interface definition (including WMS enabling metadata)
#
WEB
  TEMPLATE $fpath/src/txt.html
  MINSCALE 150000
  MAXSCALE 7950000
  IMAGEPATH "$fpath/tmp/rendered/"
  IMAGEURL "tmp/rendered/"
  METADATA
    WMS_TITLE "Makina Mapserver Test Zone"
    WMS_ABSTRACT "Tests d'implementation de solution de generation dynamique de cartes."
    WMS_ACCESSCONSTRAINTS none

    # change this value to match your setup
    WMS_ONLINERESOURCE ""

    WMS_SRS "EPSG:26915"
  END
END


# Start of scalebar

SCALEBAR
  IMAGECOLOR 255 255 255
  LABEL
    COLOR 255 255 255
    SIZE tiny
  END
  STYLE 1
  SIZE 100 2
  COLOR 255 255 255
  UNITS KILOMETERS
  INTERVALS 2
  TRANSPARENT TRUE
  STATUS TRUE
END

# Start of symbol definitions 

SYMBOL
  NAME 'circle'
  TYPE ELLIPSE
  POINTS 2 2 END
  FILLED false
  STYLE 10 5 5 10 END
END

SYMBOL
  NAME "img"
  TYPE pixmap
  IMAGE "$fpath/images/comp.png"
END

# Start of layer definitions

layer
  name commune
  type point
  group fond
  data "./$id"
  classitem "NOM"
  $alabels
  status on
  class
    label
       partials false
       color 0 0 0
       outlinecolor 255 255 255
       antialias true
       position auto
       angle auto
       force true
       offset 0 -2
    end
    size 9
    symbol img

end
END

layer
  name PointOfInterest
  type point
  group fond
  data "./$qid"
  classitem "poi"
  status $poistatus
  class
    symbol circle
    outlinecolor 0 0 0
    color 255 0 0
  end
end
END

__END__





On Wed, 22 May 2002 14:14:34 -0500 (CDT)
Pushkar Pradhan <pushkar at ERC.MsState.Edu> wrote:

> Can you post your code, does the stand alone mapserver CGI appl. work?
> > Hi,
> >
> > I've compiled mapserver with php mapscript support.
> >
> > Mapserver -v :
> > MapServer version 3.7 (development) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE
> >
> > make doesn't output any error.
> > Mapserver 3.5 works fine with the same data files and gif output.
> > No error in apache logs, but no image is created on the filesystem.
> > My gdlib version is 1.8.4 / 2.0.1 .
> >
> > Thanks
> >
> > mastre
> >
> 
> -Pushkar S. Pradhan
> 



More information about the MapServer-users mailing list