MapServer and World Files

Rahkonen Jukka Jukka.Rahkonen at MMMTIKE.FI
Thu Sep 7 03:04:20 EDT 2006


Hi,
 
I have never worked with image files having their origo at negative coordinates, but perhaps your problem is due to that?  Maybe you should flip the signs in world files, like this:
 
World file 1:
- 4.553027622068700
0.000000000000000
0.000000000000000
4.553027622068700
-2547.418954547465546
-107603.978306161036016

I'm sorry if my idea is all wrong.
 
-Jukka Rahkonen-
 
 


________________________________

Lähettäjä: UMN MapServer Users List puolesta: Ryan Ollerenshaw
Lähetetty: to 7.9.2006 3:22
Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU
Aihe: [UMN_MAPSERVER-USERS] MapServer and World Files



I have two world files that are associated with two different .pngs that
should be very far apart, 50,000 meters according to the world files,
but MapServer is rendering them one just a few meters apart, does anyone
know why this might be?

World file 1:
4.553027622068700
0.000000000000000
0.000000000000000
-4.553027622068700
-2547.418954547465546
-107603.978306161036016


World file 2:
2.891044962554800
0.000000000000000
0.000000000000000
-2.891044962554800
-2976.330788950122496
-65781.391555490277824


Here is the pgrinfo command on the shapefile that was created, as you
can see the extent only covers a small area
 > ogrinfo -al -so moc_pds_test.shp
INFO: Open of `moc_pds_test.shp'
using driver `ESRI Shapefile' successful.

Layer name: moc_pds_test
Geometry: Polygon
Feature Count: 2
Extent: (-2977.776311, -124443.350966) - (2974.885266, -65779.946033)
Layer SRS WKT:
(unknown)
location: String (255.0)



More information about the mapserver-users mailing list