[maplab-users] (no subject)

Alberto Cavalli alberto.cavalli at sintranet.it
Fri Aug 27 09:55:08 EDT 2004


Fatal error: Call to a member function on a non-object in
C:\ms4w\Apache\htdocs\apps\maplab-2.1\projects\gmf_apps\sgquery1\sgquery1.ph
p on line 56

CAN SOMEONE TELL ME WHAT IS THE PROBLEM ?
I RECEIVE THIS LINE WHEN I TRY TO SEE MT PAGE AFTER THET I MIGRATED MY SHAPE
IN POSTGIS (0.8.1)
THIS IS MY MAPFILE


MAP
  NAME "San Giorgio cdu"
  DEBUG
  STATUS DEFAULT
  EXTENT 1554200.00 4967540.00 1563500.00 4981800.00 
  SIZE 650 750 
  SHAPEPATH "./San Giorgiocompleto"
  SYMBOLSET "./tutorial/etc/symbols.sym"
  FONTSET "./tutorial/etc/fonts.txt"
  UNITS METERS
  RESOLUTION 76
  WEB
    IMAGEPATH "c:/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
    HEADER "./San Giorgiocompleto/HEADER.HTML"
  END
  REFERENCE
    STATUS ON
    IMAGE "./San Giorgiocompleto/reference_image.png"
    SIZE 100 150 
    EXTENT 1554200.00 4967540.00 1563500.00 4981800.00 
    COLOR -1 -1 -1
    OUTLINECOLOR 102 102 255
  END
  QUERYMAP
    STATUS ON
    COLOR 255 153 250
    STYLE NORMAL
  END
  LEGEND
    STATUS ON
    TRANSPARENT ON
    POSITION UL
  END
  SCALEBAR
    STATUS ON
    COLOR 51 51 51
    OUTLINECOLOR 51 51 51
    BACKGROUNDCOLOR 204 204 204
    TRANSPARENT ON
    UNITS KILOMETERS
    STYLE 1
  END
  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE PC256
    TRANSPARENT ON
  END
  LAYER
    NAME "Confine"
    STATUS DEFAULT
    DATA "the_geom FROM h887_c"
    TYPE POLYGON
    CONNECTIONTYPE POSTGIS
    CONNECTION "user=postgres PASSWORD=admin dbname=template1 host=localhost
port=5432"
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    TRANSPARENCY 25
    CLASS
      NAME "confini"
      STYLE
        COLOR 255 204 153
      END
    END
  END
 END



More information about the Maplab-users mailing list