hi again,
routeconverter Wrote:Can you program?
Yes but only in delphi, i never tryed java.
I don't know what's easyer. Me showing you what i know from calibration, or you explaining me java ;-)
I guess i could do java, but a free java programming tool would be required, i have nothing yet and i don't know where to start.
routeconverter Wrote:thank you for that interesting idea. I guess I simply don't understand enough about map calibration to implement such a functionality. RouteConverter focuses on the display and conversion of routes.
I know but you already can display beautifull maps too ! that's 95% of the job.
why 95 % ? because you don't have to calibrate ... the destination software does it. As i said pathaway has a tool called "pathaway map manager" to calibrate, and other software have similar tools.
what you need to do is to provide a .jpg or .bmp image file of the map ... and a text file with latitude/longitude of points and the corresponding X/Y pixel position in the JPG image. You load everything in the "pathaway map manager" and it outputs a calibrated .prc file containing the map image + points position.
pathaway needs a .jpg + .pwm file, but other formats exist like .bpw .geo,.gmw .jpr, .map .mcx .tab for other softwares.
some samples here :
PWM FILE :
proj_mode=7=GCP
pw_north=7=48.82745376
pw_west=7=7.93090785
pw_south=7=48.76278212
pw_east=7=8.04124817
c1_lon=7=7.93077800
c1_lat=7=48.82747897
c1_x=7=-6
c1_y=7=-3
vpa(1)=7=0.00000000
vpb(1)=7=0.00000000
vpm(1)=7=0.00000000
vpn(1)=7=0.00000000
c2_lon=7=8.04055600
c2_lat=7=48.82747900
c2_x=7=6934
c2_y=7=-3
vpa(2)=7=0.00000000
vpb(2)=7=0.00000000
vpm(2)=7=0.00000000
vpn(2)=7=0.00000000
c3_lon=7=7.93083900
c3_lat=7=48.76326800
c3_x=7=-6
c3_y=7=6162
vpa(3)=7=0.00000000
vpb(3)=7=0.00000000
vpm(3)=7=0.00000000
vpn(3)=7=0.00000000
c4_lon=7=8.04049600
c4_lat=7=48.76326900
c4_x=7=6934
c4_y=7=6162
vpa(4)=7=0.00000000
vpb(4)=7=0.00000000
vpm(4)=7=0.00000000
vpn(4)=7=0.00000000
c5_lon=7=7.98566700
c5_lat=7=48.82748500
c5_x=7=3464
c5_y=7=-3
vpa(5)=7=0.00000000
vpb(5)=7=0.00000000
vpm(5)=7=0.00000000
vpn(5)=7=0.00000000
c6_lon=7=7.98566700
c6_lat=7=48.76328200
c6_x=7=3464
c6_y=7=6162
vpa(6)=7=0.00000000
vpb(6)=7=0.00000000
vpm(6)=7=0.00000000
vpn(6)=7=0.00000000
c7_lon=7=7.93081300
c7_lat=7=48.79537400
c7_x=7=-6
c7_y=7=3079
vpa(7)=7=0.00000000
vpb(7)=7=0.00000000
vpm(7)=7=0.00000000
vpn(7)=7=0.00000000
c8_lon=7=8.04052100
c8_lat=7=48.79537400
c8_x=7=6934
c8_y=7=3079
vpa(8)=7=0.00000000
vpb(8)=7=0.00000000
vpm(8)=7=0.00000000
vpn(8)=7=0.00000000
c9_lon=7=7.98566700
c9_lat=7=48.79538300
c9_x=7=3464
c9_y=7=3079
vpa(9)=7=0.00000000
vpb(9)=7=0.00000000
vpm(9)=7=0.00000000
vpn(9)=7=0.00000000
GEO FILE
rp0="48.827479,7.930778,-3,-6"
rp1="48.827479,8.040556,-3,6934"
rp2="48.763268,7.930839,6162,-6"
rp3="48.763269,8.040496,6162,6934"
MCX FILE
<MapCalibrationData>
<Name>Sessenheim et environs.bmp</Name>
<File>C:\Sessenheim et environs.bmp</File>
<Size width="6980" height="6210" />
<RefPoints>
<RefPoint name="Pt1">
<RasterPosition x="-6" y="-3" />
<GeoPosition longitude="7.930778" latitude="48.827479" />
</RefPoint>
<RefPoint name="Pt2">
<RasterPosition x="6934" y="-3" />
<GeoPosition longitude="8.040556" latitude="48.827479" />
</RefPoint>
<RefPoint name="Pt3">
<RasterPosition x="-6" y="6162" />
<GeoPosition longitude="7.930839" latitude="48.763268" />
</RefPoint>
<RefPoint name="Pt4">
<RasterPosition x="6934" y="6162" />
<GeoPosition longitude="8.040496" latitude="48.763269" />
</RefPoint>
<RefPoint name="Pt5">
<RasterPosition x="3464" y="-3" />
<GeoPosition longitude="7.985667" latitude="48.827485" />
</RefPoint>
<RefPoint name="Pt6">
<RasterPosition x="3464" y="6162" />
<GeoPosition longitude="7.985667" latitude="48.763282" />
</RefPoint>
<RefPoint name="Pt9">
<RasterPosition x="3464" y="3079" />
<GeoPosition longitude="7.985667" latitude="48.795383" />
</RefPoint>
</RefPoints>
</MapCalibrationData>
Each georeferencing file does the same .. it links longitude/latitude and X/Y image points.
I don't know much more about this topic. i just calibrated manually a file with "pathaway map manager" and i'm now able to export calibration files corresponding to my map.
I don't know for other softwares, but pathaway does not require the points to be at specific places, he can calibrate with at least 3 points placed anywhere.
bonus : the pathaway "map manager tool" so can be downloaded here
http://www.pathaway.com/convert.htm
Tell me what you think ... i'm sure there is something to do with the idea.
Best regards
Chris