[Gdal-dev] How do These numbers mean
hien thu
hientb24 at yahoo.com
Tue Mar 23 21:00:46 EST 2004
Hello !
I have some questions..
1. I want to display a raster layer ( an image format .tif).
But I alway get error :"Internal SerVer Error :The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root at localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log."
My map : tif.map:
MAP
IMAGETYPE PNG24
EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514
SIZE 400 300
SHAPEPATH "data"
SYMBOLSET "symbols/symbols35.sym"
FONTSET "fonts/fonts.list"
WEB
IMAGEPATH '/var/www/html/tmp/'
IMAGEURL '/tmp/'
END
PROJECTION
# "init=epsg:4326"
# "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 # MODIS raster layer begins here
NAME modis
DATA "raster/example.tif"
STATUS default
TYPE RASTER
PROCESSING "BANDS=1,2,3"
OFFSITE 71 74 65
PROJECTION
"init=epsg:4269"
END
END # MODIS raster layer ends here
# End of LAYER DEFINITIONS -------------------------------
END # end of map file
2. 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 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)
3. I have two images as the same properties ( img1.tif ; img2.tif )
File Type Tagged Information File Format (Tiff)
Width 3480
Height 1740
HorizontalR 1
VerticalRes 1
Bit Depth 24
Color Repre True color RGB
Comprestion uncompressed
But when I open them by ArcView 3.0 , I see some differences between them :
( Defination)
img1.tif:
Left : -97.374337 Right -80.903299
Bottom 41.180399 Top 49.415915
img2.tif:
-0.005208 36.223958
-18.119792 0.005208
How do These numbers mean ? Can I change img2.tif same as img1.tif ?
I am very worry because althougt I try again but still ....
Hepl me !
Thanks a lot !
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20040323/15c9f620/attachment.html
More information about the Gdal-dev
mailing list