[Mapserver-users] Extent

bartvde at xs4all.nl bartvde at xs4all.nl
Fri Mar 19 02:37:42 EST 2004


Hi,

try

EXTENT -95.809105 41.500326 -82.209468 48.311024

It should be the same as the OGRinfo Extent if you want to see your
complete dataset. The syntax in OGR Extent is:

(Xmin, YMin) - (XMax, YMax)

Best regards,
Bart

> 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




More information about the mapserver-users mailing list