[mapserver-users] help: load a static map

marco.sileri at virgilio.it marco.sileri at virgilio.it
Wed Apr 9 11:47:16 EDT 2008


Hi
I'm a student and I’m starting my first application of MapServer 
with my own data following the tutorial and I already have the 
following problem.

I have a very simple  shape data  in 
geographic/WGS84 and also UTM/WGS84 format; I have picked the extension 
using ARCGIS and I have tried a static visualization of my map as it is 
shown in the first example of the tutorial.


MAP
  IMAGETYPE      PNG
#   EXTENT         -97.348976 41.619778 -82.122902 49.385620  #geo 
states
     EXTENT         12.238976 41.619778 13.122902 49.385620     
#geo rieti
#   EXTENT         73306.04 -295414.39 1501200.05 
614634.59   #laea states
#   EXTENT         280000.0 4660000.0 376000.0 
4735000.0     #UTM/WGS84 rieti
  SIZE           1000 1000
  
SHAPEPATH      "/ms4w/apps/marco/data"
  IMAGECOLOR     255 255 255

  
# Start of LAYER DEFINITIONS 
---------------------------------------------
  LAYER # States polygon 
layer begins here
  NAME         comuni
  DATA         comuni_rieti_ll
  STATUS       OFF
  TYPE         POLYGON
  
  CLASS
      NAME       
"comuni"

      STYLE
      COLOR        232 232 232
      OUTLINECOLOR 
32 32 32
     END
    END
  END # States polygon layer ends here


I 
have tried the following things:
- load my data  using the geographic 
coordinates (and corresponding extension);
- load my data using  the 
UTM/WGS84 coordinates (and corresponding extension);
- read the data 
through  the html-page or entering the URL  (http://localhost/cgi-
bin/mapserv.exe?map=/ms4w/apps/marco/htdocs/example1-1.
map&layer=states&mode=map)

I always don’t have any error, but I only 
see the window in which the data should be visualised. 

It’s looks 
like the extension is wrong, but  I have checked my shape with ArcGis 
and also with Ogrinfo ….
INFO: Open of `comuni_rieti_ll.shp'
      
using driver `ESRI Shapefile' successful.

Layer name: comuni_rieti_ll
Geometry: Polygon
Feature Count: 73
Extent: (12.436251, 42.089346) - 
(13.409627, 42.740986)
Layer SRS WKT:
GEOGCS["GCS_WGS_1984",
    DATUM
["WGS_1984",
        SPHEROID["WGS_1984",6378137,298.257223563]],
    
PRIMEM["Greenwich",0],
    UNIT["Degree",0.0174532925199433]]
AREA: 
Real (15.3)
PERIMETER: Real (15.3)
COD_AMM: Integer (9.0)
COMUNE: 
String (35.0)
PROVINCIA: String (20.0)
CS_15: Integer (2.0)
COD_REG: 
Integer (3.0)
COD_PRO: Integer (3.0)
COD_COM: Integer (3.0)


What can 
be wrong and what other  can be done to solve the problem?

Can 
anybody, please, help me?

Bye Marco




More information about the mapserver-users mailing list