[Mapserver-users] Extent

hien thu hientb24 at yahoo.com
Thu Mar 18 21:57:47 EST 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 :&nbsp; vung.dbf </DIV>
<DIV>I Open&nbsp; file `vung.dbf' using driver `ESRI Shapefile' </DIV>
<DIV>&nbsp;</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>&nbsp; ID (Integer) = 0<BR>&nbsp; TENVUNG (String) = mÝnota<BR>&nbsp; LOP (String) = nuoc<BR>&nbsp; POLYGON ((-95.80910507 48.31102390,-93.32853131 47.70176017,-94.41650226 47.37536889,-95.80910507 48.31102390))</DIV>
<DIV>OGRFeature(vung):1<BR>&nbsp; ID (Integer) = 0<BR>&nbsp; TENVUNG (String) = bfdb<BR>.....</DIV>
<DIV>&nbsp;</DIV>
<DIV>example.map:</DIV>
<DIV>MAP<BR>&nbsp; IMAGETYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PNG<BR>&nbsp;&nbsp;EXTENT&nbsp;&nbsp;&nbsp;&nbsp; -95.809105&nbsp; 41.500326&nbsp;&nbsp;&nbsp;&nbsp; 82.209468 -48.311024<BR>&nbsp; SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 400 300<BR>&nbsp; SHAPEPATH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "data"</DIV>
<DIV><BR>&nbsp;PROJECTION<BR>&nbsp;&nbsp;&nbsp; "proj=laea"<BR>&nbsp;&nbsp;&nbsp; "ellps=clrk66"<BR>&nbsp;&nbsp;&nbsp; "lat_0=45"<BR>&nbsp;&nbsp;&nbsp; "lon_0=-100"<BR>&nbsp; #<BR>&nbsp; # Alternatively, you can specify an EPSG code.<BR>&nbsp; # "init=epsg:2163"<BR>&nbsp; #<BR>&nbsp; END</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; # Start of LAYER DEFINITIONS ---------------------------------------------<BR>&nbsp; LAYER # States polygon layer begins here<BR>&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vung<BR>&nbsp;&nbsp;&nbsp; DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vung<BR>&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DEFAULT<BR>&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POLYGON</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:4326"<BR>&nbsp;&nbsp;&nbsp; END</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; CLASSITEM&nbsp;&nbsp;&nbsp; "LOP"<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION 'dat'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp;&nbsp;&nbsp;&nbsp; 32 132&nbsp; 255<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; COLOR&nbsp;&nbsp;&nbsp;&nbsp; 32 132&nbsp; 255<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION 'nuoc'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 198 198 255<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END&nbsp;</DIV>
<DIV>END # End mapfile</DIV>
<DIV>&nbsp;</DIV>
<DIV>But Image don't create&nbsp;without an error ?</DIV>
<DIV>I don't understand what happened&nbsp;?</DIV>
<DIV>Can you tell me about " Extent"&nbsp; in Shapefile (e.g vung.dbf) relative with&nbsp;"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