[Mapserver-users] Re: Extent Help Me !!!

bartvde at xs4all.nl bartvde at xs4all.nl
Tue Mar 23 02:38:06 EST 2004


Hi,

first of all, always send back a response to the complete list as this
will increase your chances of getting an answer, and it will be kept in
archives.

Is your data in EPSG:4326? If yes then try specifying this for the MAP
projection as well.

Also, try using the shp2img utility to see if the problem is not with
rights on your systems.

You can also try to use Mapserver debugging:
http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver

Good luck.

Best regards,
Bart

> Hello !
>
> I have a questions..
>
> I have a map file :
>
> I display this file but  no image can create ( white image and no error)
>
> MAP
>   IMAGETYPE      PNG
>   EXTENT              ???  Help me ??
>
> #  I used   Extent:  4.931450  -10.330521     14.607994    -2.691144
>     but  still get same result
>
>   SIZE           400 300
>   SHAPEPATH      "data"
>   IMAGECOLOR      255 255 255
>   SYMBOLSET "symbols/symbols35.sym"
>   FONTSET    "fonts/fonts.list"
>   PROJECTION
>     "proj=laea"
>     "ellps=clrk66"
>     "lat_0=45"
>     "lon_0=-100"
>   #
>   # Alternatively, you can specify an EPSG code.
>   # "init=epsg:2163"
>   #
>   END
> #---------------------------------------------
> LAYER
>   NAME a1
>   TYPE POINT
>   DATA a1
>   STATUS default
>   PROJECTION
>     "init=epsg:4326"
>   END
>   CLASS
>     COLOR 255  0
>     SYMBOL 'star'
>     SIZE 10
>   END
> END
> #-------------------------------------------------
> LAYER # Display name
>   NAME         a1
>   DATA         a1
>   STATUS       default
>   TYPE         ANNOTATION
>   PROJECTION
>     "init=epsg:4326"
>   END
>   LABELITEM    "TEN"
>   CLASS
>     COLOR      -1 -1 -1
>     LABEL
>       COLOR 132 31 31
>       SHADOWCOLOR 218 218 218
>       SHADOWSIZE 2 2
>       TYPE TRUETYPE
>       FONT arial-bold
>       SIZE 12
>       ANTIALIAS TRUE
>       POSITION UC
>       PARTIALS FALSE
>       MINDISTANCE 300
>       BUFFER 4
>     END # end of label
>   END # end of class
>  END # States label layer ends here
> #-------------------------------------------------
> END # end of mapfile
>
> I use ArcView 3.0 to creare shapefiles : a1.dbf ; a1.shx ; a1.shp
>
> a1.dbf :
>
> INFO: Open of `a1.dbf'
> using driver `ESRI Shapefile' successful.
> Layer name: a1
> Geometry: Point
> Feature Count: 3
> Extent: (4.931450, -10.330521) - (14.607994, -2.691144)
> Layer SRS WKT:
> (unknown)
> ID: Integer (8.0)
> TEN: String (16.0)
> OGRFeature(a1):0
>   ID (Integer) = 0
>   TEN (String) = buon
>   POINT (13.84405618 -2.69114417)
> OGRFeature(a1):1
>   ID (Integer) = 0
>   TEN (String) = vui
>   POINT (14.60799388 -9.43926052)
> OGRFeature(a1):2
>   ID (Integer) = 0
> TEN (String) = daukho
>   POINT (4.93144968 -10.33052117)
>
> a1.shx:
>
> INFO: Open of `a1.shx'
> using driver `ESRI Shapefile' successful.
> Layer name: a1
> Geometry: Point
> Feature Count: 3
> Extent: (4.931450, -10.330521) - (14.607994, -2.691144)
> Layer SRS WKT:
> (unknown)
> ID: Integer (8.0)
> TEN: String (16.0)
> OGRFeature(a1):0
>   ID (Integer) = 0
>   TEN (String) = buon
>   POINT (13.84405618 -2.69114417)
> OGRFeature(a1):1
>   ID (Integer) = 0
>   TEN (String) = vui
>   POINT (14.60799388 -9.43926052)
> OGRFeature(a1):2
>   ID (Integer) = 0
>   TEN (String) = daukho
>   POINT (4.93144968 -10.33052117)
>
> a1.shp :
>
> INFO: Open of `a1.shp'
> using driver `ESRI Shapefile' successful.
> Layer name: a1
> Geometry
> : Point
> Feature Count: 3
> Extent: (4.931450, -10.330521) - (14.607994, -2.691144)
> Layer SRS WKT:
> (unknown)
> ID: Integer (8.0)
> TEN: String (16.0)
> OGRFeature(a1):0
>   ID (Integer) = 0
>   TEN (String) = buon
>   POINT (13.84405618 -2.69114417)
> OGRFeature(a1):1
>   ID (Integer) = 0
>   TEN (String) = vui
>   POINT (14.60799388 -9.43926052)
> OGRFeature(a1):2
>   ID (Integer) = 0
>  TEN (String) = daukho
>   POINT (4.93144968 -10.33052117)
>
>
> Thanks a lot !
>
>
> Do you Yahoo!?
> Yahoo! Finance Tax Center - File online. File on time






More information about the mapserver-users mailing list