[mapserver-users] Re: gdalinfo - error while opening CADRG map

2010-04-28 Thread wostok

Even, thanks for your reply. I managed to build my own gdal dll with removed
lines in gdal/frmts/nitf/rpftocfile.cpp, and everything seems to be all
right. CADRG map loaded without problems and it looks fine.
Unfortunately I am not allowed to send you a copy of my dataset.
Thank you very much.
Please reply if you need more feedback.

wostok


Even Rouault wrote:
 
 wostok,
 
 I'd think that such a TOC file would be invalid. It would mean that the
 same 
 CADRG tile is used several times at different geolocations. But as a CADRG 
 tile contains its own georeferencing, this doesn't make much sense.
 
 However, if you can compile gdal yourself,  you could remove the following 
 lines (around line 423-430) in gdal/frmts/nitf/rpftocfile.cpp and see what 
 happens.
 
 if (frameEntry-exists)
 {
 CPLError( CE_Failure, CPLE_NotSupported, 
   Invalid TOC file. Frame entry(%d,%d) for frame file 
 index %d is a duplicate.,
   frameRow, frameCol, i);
 RPFTOCFree(toc);
 return NULL;
 }
 
 I'd be interested in having your feedback and/or seeing this dataset if
 you 
 can share it. Maybe this test should just be turned into a warning.
 
 Best regards,
 
 Even
 
 Le Tuesday 20 April 2010 14:33:10 wostok, vous avez écrit :
 Hello,

 I'm getting error while executing gdalinfo on CADRG map (.toc file):

 gdalinfo.exe my_toc_file.toc
 ERROR 6: Invalid TOC file. Frame entry(15,6) for frame file index 421 is
 a
 duplicate.
 gdalinfo failed - unable to open 'path_to_A.TOC'.

 It looks like the map file is bad, but when I opened it in CADRG viewer -
 Tatuk Gis,
 there weren't any problems.

 I haven't found any information about this error on google.
 Is this a bug or my map file has been corrupted?

 I use fwtools 2.4.7 on win xp,

 Thanks in advance.

 wostok
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/gdalinfo-error-while-opening-CADRG-map-tp4930886p4973736.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] gdalinfo - error while opening CADRG map

2010-04-20 Thread wostok

Hello,

I'm getting error while executing gdalinfo on CADRG map (.toc file):

gdalinfo.exe my_toc_file.toc
ERROR 6: Invalid TOC file. Frame entry(15,6) for frame file index 421 is a
duplicate.
gdalinfo failed - unable to open 'path_to_A.TOC'.

It looks like the map file is bad, but when I opened it in CADRG viewer -
Tatuk Gis,
there weren't any problems.

I haven't found any information about this error on google.
Is this a bug or my map file has been corrupted?

I use fwtools 2.4.7 on win xp,

Thanks in advance.

wostok

-- 
View this message in context: 
http://n2.nabble.com/gdalinfo-error-while-opening-CADRG-map-tp4930886p4930886.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapscript - getting square map image from rectangular piece of space

2010-01-22 Thread wostok

Hello,

I am using mapscript to obtain square map image from rectangular
piece of space with method zoomPoint, but returned image isn't
transformed. It's cropped not coarcted.
I need something like gives wms request with BBOX=-180,-90,180,90 and
WIDTH=300HEIGHT=300.
How the parameters to the zoomPoint, zoomRectangle or zoomScale should be
passed
to coarct map piece?

Thanks in advance
wostok


-- 
View this message in context: 
http://n2.nabble.com/mapscript-getting-square-map-image-from-rectangular-piece-of-space-tp4439575p4439575.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users