[ka-Map-users] Issue regarding display format of Shapefiles

Kunal Krishna kunal.krishna at yahoo.co.in
Mon Mar 3 17:42:19 EST 2008


Hi all,

This is Kunal.  I am a master' student at georgia tech. We are developing a electricity market project using Kamap for the United States.

I have downloaded the shapefile of USA and was trying to integrate it with Kamap.

Link - 
http://nationalatlas.gov/atlasftp.html?openChapters=chpbound#chpbound

I am able to see data being downloaded in the browser but cannot see the map. I feel its a issue with the output format. How do i know what is the output format supported by this shapefile ? 

It would be great if you can help us out and resolve this issue.

Here is the mapfile that i am using 

MAP
 NAME US_map
 STATUS ON
 SIZE 600 600
 EXTENT -180 17 180 72
 UNITS DD
 SHAPEPATH "/ms4w/apps/gmap/data/us"
 IMAGECOLOR 255 255 255
 IMAGETYPE png

 WEB
   IMAGEPATH  "ms4w/tmp/ms_tmp/"
   IMAGEURL "ms4w/tmp/ms_tmp/"
 END

OUTPUTFORMAT
 NAME 'AGG'
 DRIVER AGG/PNG
 IMAGEMODE RGB
END

OUTPUTFORMAT
 NAME 'AGGA'
 DRIVER AGG/PNG
 IMAGEMODE RGBA
END

OUTPUTFORMAT
   NAME 'AGG_JPEG'
   DRIVER AGG/JPEG
   IMAGEMODE RGB
END

OUTPUTFORMAT ##added for jpg background
    NAME jpeg
    DRIVER "GD/JPEG"
    IMAGEMODE RGB
    EXTENSION "jpeg"
    FORMATOPTION "QUALITY=75,PROGRESSIVE=TRUE"
END
OUTPUTFORMAT
 NAME png
 DRIVER "GD/PNG"
 MIMETYPE "image/png"
 IMAGEMODE RGB
 FORMATOPTION  INTERLACE=OFF
 TRANSPARENT OFF
END
OUTPUTFORMAT
 NAME png8
 DRIVER "GD/PNG"
 MIMETYPE "image/png"
 IMAGEMODE PC256
 FORMATOPTION   INTERLACE=OFF
 TRANSPARENT OFF
END
OUTPUTFORMAT
 NAME GTiff
 DRIVER "GDAL/GTiff"
 MIMETYPE "image/tiff"
 IMAGEMODE RGB
 #FORMATOPTION "TFW=YES"
 #FORMATOPTION "COMPRESS=PACKBITS"
END
OUTPUTFORMAT
 NAME imagemap
 MIMETYPE "text/html"
 FORMATOPTION SKIPENDTAG=ON
 DRIVER imagemap
END





 LEGEND
   TRANSPARENT TRUE
 END

 SCALEBAR
   TRANSPARENT TRUE
 END
 

 LAYER
   NAME countries
   TYPE Polygon
   STATUS ON
   DATA "/ms4w/apps/gmap/data/us/cgd10p020.shp"
   
   CLASS
     NAME "Country Boundaries"
     STYLE
       COLOR 200 100 100
     END
   END
 END
END #MAP  END


Regards,

Kunal Krishna
MS - Quantitative Computational Finance - 08
Georgia Institute of Technology
Email:- kunal.krishna at gatech.edu
       
---------------------------------
 Forgot the famous last words? Access your message archive online. Click here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20080303/0d12a901/attachment-0001.html


More information about the ka-Map-users mailing list