[Mapserver-users] Extent

hien thu hientb24 at yahoo.com
Thu Mar 18 18:57:47 PST 2004


--0-2013462930-1079665067=:84065
Content-Type: text/plain; charset=us-ascii

Hello !
I use AcrWiew 3.0 software to create shapefiles (.dbf, .shp, .shx extention).
Example :  vung.dbf 
I Open  file `vung.dbf' using driver `ESRI Shapefile' 
 
Layer name: vung
Geometry: Polygon
Feature Count: 7
Extent: (-95.809105, 41.500326) - (-82.209468, 48.311024)
Layer SRS WKT:
(unknown)
ID: Integer (8.0)
TENVUNG: String (16.0)
LOP: String (16.0)
OGRFeature(vung):0
  ID (Integer) = 0
  TENVUNG (String) = mÝnota
  LOP (String) = nuoc
  POLYGON ((-95.80910507 48.31102390,-93.32853131 47.70176017,-94.41650226 47.37536889,-95.80910507 48.31102390))
OGRFeature(vung):1
  ID (Integer) = 0
  TENVUNG (String) = bfdb
.....
 
example.map:
MAP
  IMAGETYPE      PNG
  EXTENT     -95.809105  41.500326     82.209468 -48.311024
  SIZE           400 300
  SHAPEPATH      "data"

 PROJECTION
    "proj=laea"
    "ellps=clrk66"
    "lat_0=45"
    "lon_0=-100"
  #
  # Alternatively, you can specify an EPSG code.
  # "init=epsg:2163"
  #
  END
 
  # Start of LAYER DEFINITIONS ---------------------------------------------
  LAYER # States polygon layer begins here
    NAME         vung
    DATA         vung
    STATUS       DEFAULT
    TYPE         POLYGON
 
    PROJECTION
      "init=epsg:4326"
    END
 
    CLASSITEM    "LOP"
    CLASS
      EXPRESSION 'dat'
       COLOR     32 132  255
    END
    CLASS
    COLOR     32 132  255
    END
    CLASS
      EXPRESSION 'nuoc'
       COLOR      198 198 255
    END
  END 
END # End mapfile
 
But Image don't create without an error ?
I don't understand what happened ?
Can you tell me about " Extent"  in Shapefile (e.g vung.dbf) relative with "Extent"  in mapfile (e.g example.map)
Thank you very much.

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
--0-2013462930-1079665067=:84065
Content-Type: text/html; charset=us-ascii

<DIV>Hello !</DIV>
<DIV>I use AcrWiew 3.0 software to create shapefiles (.dbf, .shp, .shx extention).</DIV>
<DIV>Example :  vung.dbf </DIV>
<DIV>I Open  file `vung.dbf' using driver `ESRI Shapefile' </DIV>
<DIV> </DIV>
<DIV>Layer name: vung<BR>Geometry: Polygon<BR>Feature Count: 7<BR>Extent: (-95.809105, 41.500326) - (-82.209468, 48.311024)<BR>Layer SRS WKT:<BR>(unknown)<BR>ID: Integer (8.0)<BR>TENVUNG: String (16.0)<BR>LOP: String (16.0)<BR>OGRFeature(vung):0<BR>  ID (Integer) = 0<BR>  TENVUNG (String) = mÝnota<BR>  LOP (String) = nuoc<BR>  POLYGON ((-95.80910507 48.31102390,-93.32853131 47.70176017,-94.41650226 47.37536889,-95.80910507 48.31102390))</DIV>
<DIV>OGRFeature(vung):1<BR>  ID (Integer) = 0<BR>  TENVUNG (String) = bfdb<BR>.....</DIV>
<DIV> </DIV>
<DIV>example.map:</DIV>
<DIV>MAP<BR>  IMAGETYPE      PNG<BR>  EXTENT     -95.809105  41.500326     82.209468 -48.311024<BR>  SIZE           400 300<BR>  SHAPEPATH      "data"</DIV>
<DIV><BR> PROJECTION<BR>    "proj=laea"<BR>    "ellps=clrk66"<BR>    "lat_0=45"<BR>    "lon_0=-100"<BR>  #<BR>  # Alternatively, you can specify an EPSG code.<BR>  # "init=epsg:2163"<BR>  #<BR>  END</DIV>
<DIV> </DIV>
<DIV>  # Start of LAYER DEFINITIONS ---------------------------------------------<BR>  LAYER # States polygon layer begins here<BR>    NAME         vung<BR>    DATA         vung<BR>    STATUS       DEFAULT<BR>    TYPE         POLYGON</DIV>
<DIV> </DIV>
<DIV>    PROJECTION<BR>      "init=epsg:4326"<BR>    END</DIV>
<DIV> </DIV>
<DIV>    CLASSITEM    "LOP"<BR>    CLASS<BR>      EXPRESSION 'dat'<BR>       COLOR     32 132  255<BR>    END<BR>    CLASS<BR>    COLOR     32 132  255<BR>    END<BR>    CLASS<BR>      EXPRESSION 'nuoc'<BR>       COLOR      198 198 255<BR>    END<BR>  END </DIV>
<DIV>END # End mapfile</DIV>
<DIV> </DIV>
<DIV>But Image don't create without an error ?</DIV>
<DIV>I don't understand what happened ?</DIV>
<DIV>Can you tell me about " Extent"  in Shapefile (e.g vung.dbf) relative with "Extent"  in mapfile (e.g example.map)</DIV>
<DIV>Thank you very much.</DIV><p><font face=arial size=-1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mailtag_us/*http://mail.yahoo.com" target="_blank"><b>Yahoo! Mail</a></b> - More reliable, more storage, less spam
--0-2013462930-1079665067=:84065--



More information about the MapServer-users mailing list