A aviation & planes forum. AviationBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » AviationBanter forum » rec.aviation newsgroups » General Aviation
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Georeferencing Maps [was GPS and airspace]



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old July 2nd 04, 06:53 AM
John Clonts
external usenet poster
 
Posts: n/a
Default


"Kyler Laird" wrote in message
...
"John Clonts" writes:

FYI, I patched the tags in my test file (from


https://aviationtoolbox.org/Members/...le=50&image_fo

rmat=GeoTIFF&lr_Y=-753147.0&lr_X=318457.0&ul_X=216057.0&ul_Y=-676347.0)
with geotifcp per J.G.'s instructions, and Oziexplorer is happy with that
image now. Do you know if changing your generation code would be
appropriate, and/or cause other problems with other software?


It's appropriate and I want to do it. If it causes any problems, I'll
work through them. I want these things to be correct.

Yesterday I distilled the code to a few lines that demonstrate the
problem and sent a report to the GDAL developer mailing list.
http://remotesensing.org/mailman/listinfo/gdal-dev/
It hasn't appeared in the archives yet.


Hello Kyler,

Well, I haven't seen your inquiry show up there yet-- nor at the nntp site
news.gmane.org/gmane.comp.gis.gdal.devel.

But in the mean time I did some digging, and determined a fix that seems to
work for it, in gdal-1.2.1\frmts\gtiff\gt_wkt_srs.cpp, line 1419:

else if( EQUAL(pszProjection,SRS_PT_LAMBERT_CONFORMAL_CONIC _2SP) )
{
GTIFKeySet(psGTIF, GTModelTypeGeoKey, TYPE_SHORT, 1,
ModelTypeProjected);
GTIFKeySet(psGTIF, ProjectedCSTypeGeoKey, TYPE_SHORT, 1,
KvUserDefined );
GTIFKeySet(psGTIF, ProjectionGeoKey, TYPE_SHORT, 1,
KvUserDefined );

GTIFKeySet(psGTIF, ProjCoordTransGeoKey, TYPE_SHORT, 1,
CT_LambertConfConic_2SP );

GTIFKeySet(psGTIF, ProjFalseOriginLatGeoKey, TYPE_DOUBLE, 1,
poSRS-GetProjParm( SRS_PP_LATITUDE_OF_ORIGIN, 0.0 ) );

/* jcc 7/2/04 changed from ProjFalseOriginLongGeoKey */
GTIFKeySet(psGTIF, ProjNatOriginLongGeoKey, TYPE_DOUBLE, 1, //
line 1419
poSRS-GetProjParm( SRS_PP_CENTRAL_MERIDIAN, 0.0 ) );

GTIFKeySet(psGTIF, ProjStdParallel1GeoKey, TYPE_DOUBLE, 1,
poSRS-GetProjParm( SRS_PP_STANDARD_PARALLEL_1, 0.0 ) );

I tried to post to the nntp server on the devel list but it did not accept
my posting... perhaps you have better connections into that group.

I will post my new pymod\_gdal.dll and bin\gdal12.dll on
alt.binaries.pictures.aviation if you would like to test them...

Cheers,
John


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 AviationBanter.
The comments are property of their posters.