[Mapserver-users] Re: Sir I need you help {Scanned}
Siki Zoltan
siki at agt.bme.hu
Fri Jul 30 13:27:56 PDT 2004
Hi,
Pravat you should send your mail to the list too, some other user can
help/learn from it.
About your question ...
Here is a tab file for a jpeg file, it must hold at least 3 points in
world coordinate system and image coordinate system.
The origin of the image coordinate system is the upper left corner.
!table
!version 300
!charset WindowsLatin1
Definition Table
File "4430.jpg"
Type "RASTER"
(647250.00,233999.95) (0,0) Label "Pt 1",
(648000.00,233999.95) (5000,0) Label "Pt 2",
(648000.00,233500.00) (5000,3333) Label "Pt 3",
(647250.00,233500.00) (0,3333) Label "Pt 4"
CoordSys NonEarth Units "m"
Units "m"
RasterStyle 1 50
RasterStyle 2 50
Here is the coresponding world file (I add comment to the end of the line,
you must put comment in the real file!)
0.15 pixel size in x direction in real life distance (15 cm)
0.0 parameter for rotation it must be 0 for mapserver
0.0 parameter for rotation it must be 0 for mapserver
-0.15 pixel size in y direction * -1 (15 cm)
647250.075 center of the upper left pixel in world coordinates (x)
233999.875 (y)
how to calculate the values?
x pixel size = (648000 - 233999.95) / (5000 - 0) or
x coordinate difference between any two point over the x
difference in pixel coordinates
y pixel size = -(233500 - 233999.95) / (3333 - 0)
x upper left = 647250 - 0.15 / 2 (the center of the pixel)
y upper left = 233999.95 - 0.15 / 2
I hope it helps you.
Bye
Zoltan
On Thu, 29 Jul 2004, Pravat Satapathy wrote:
> Dear Sir,
>
> I am pravat Satapathy. I got you mail ID from "mapserver.gis.umn.edu". I need your some help. I have very tried.
>
> I have one TAB file and their JPEG file. AUtoCAD MAP 6 not support the TAB files.
> Please let know how I will insert the image through TAB file. Can i convert a TAB to TFW file.
>
> I look forward to your quick reply.
>
> Thank you.
>
> Pravat
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
More information about the MapServer-users
mailing list