[mapserver-users] Mapfile from Postgis, just Background No Map?

elisabeth theresia dbee_kawai at yahoo.com
Tue Aug 3 20:54:59 PDT 2010


Good day all,
i want to ask, i have file shp that already convert to Postgis, then i want to 
appear it in mapfile named:map_postgis.map then check in: 
http://localhost/cgi-bin/mapserv.exe?map=i:/Spatial/mapfile/map_postgis.map&mode=map,
 but that i found just background no Map. why?

shp: kec_kasus_DBD
db in postgis: db_SpatialSura
table: tb_kasusdbd
mapfile: map_postgis
for checking: i want to see column 'kecamatan'

here my mapfile:
MAP

NAME kec_kasus_DBD
IMAGETYPE JPEG
EXTENT -123.950500 -183.224900 299.457000 145.260600
STATUS ON
UNITS DD
SIZE 546 388
IMAGECOLOR 255 241 215 
SHAPEPATH "i:\Spatial\shp_kec"
FONTSET "i:\Spatial\font\font.dat"
UNITS KILOMETERS



#DATA
    LAYER
    NAME "tb_kasusdbd"
    STATUS ON
    TYPE POLYGON
    CONNECTIONTYPE POSTGIS
    CONNECTION "user=dbee dbname=dbSpatialSura host=localhost port=5432 
password=xxxxxx"
    DATA "the_geom FROM tb_kasusdbd USING UNIQUE code_kec"
        MINSCALE 100000
   
    
    #FILTER "type= 'jumdbd_08'"
        CLASS
        
        
        NAME "kecamatan"
            STYLE
            COLOR 255 22 22
            OUTLINECOLOR 67 70 31
            WIDTH 2
            ANTIALIAS TRUE
            END#style
        END#class
    
    END#layer
END#map

Thanks :)



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100803/15984180/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: map_postgis.map
Type: application/octet-stream
Size: 985 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100803/15984180/attachment.obj>


More information about the MapServer-users mailing list