Re: [mapserver-users] How do I use ASRP maps in mapserver?

2009-12-15 Thread Alans



Frank Warmerdam wrote:
> 
> Alans wrote:
>> 
>> 
>> Even Rouault wrote:
>>> Alan,
>>>
>>> SRP driver has been added into GDAL SVN trunk a few months ago, so it 
>>> will be part of the GDAL 1.7.0 release.
>>>
>>>
>> 
>> It does not seem to matter which version of GDAL I try, gdalinfo
>> MyFile.IMG
>> always reports 
>> 'MyFile.IMG not recognised as a supported format'. 
>> 
>> The most recent version of GDAL that I tried was
>> gdal-svn-trunk-2009.12.14.
>> 'gdalinfo --version' reports 'GDAL 1.7.0dev, released 2008/11/26'. Where
>> does this strange date come from?
>> 
>> 'gdalinfo --formats' does list SRP as a supported format.
>> srpdataset.cpp is present in the frmts/adrg directory.
>> 
>> Just in case it is important, I had to configure GDAL with '--without
>> -libtool' to get it to build on my system (SLES 10).
> 
> Alan,
> 
> I suspect there is something particular about your file(s) that is causing
> problems for the driver, or perhaps you are missing some associated files.
> 
> Running gdalinfo with the --debug on switch might give some additional
> information.
> 
> eg.
> 
>gdalinfo --debug on A2976101.IMG
> 
> If that doesn't give any help, I would be willing to look into the problem
> if you can provide the data to me.  I would appreciate an opportunity to
> examine the data if it may reflect an issue with the driver.
> 
> Best regards,
> -- 
> ---+--
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmer...@pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush| Geospatial Programmer for Rent
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

Hi Frank,

I ran gdalinfo with debug and it produced the following results:

a...@stratford:~/gdal/gdal-svn-trunk-2009.12.14 15% apps/gdalinfo --debug on
/nashome/noBackup/map_CDs/UK_1to50k/03/ASRP/GUK166/GUK16601.IMG
SRP: NAM=GUK166
SRP: SCA=5
SRP: ZNA=3
SRP: PSP=66.70
GDALPamDataset: In destructor with dirty metadata.
ERROR 4: `/nashome/noBackup/map_CDs/UK_1to50k/03/ASRP/GUK166/GUK16601.IMG'
not recognised as a supported file format.

gdalinfo failed - unable to open
'/nashome/noBackup/map_CDs/UK_1to50k/03/ASRP/GUK166/GUK16601.IMG'.
GDAL: GDALDeregister_GTiff() called.

Does this help diagnose the problem?

The GUK16601.IMG file has the following associated files; GUK16601.GER,
GUK16601.GEN, GUK16601.SOU and GUK16601.QAL.

I am investigating the legalities regarding sending the data file, or
possibly finding other files that exhibit the same issues. Do you know of
any data online that I could use?

Thanks for your interest,
Alan
-- 
View this message in context: 
http://n2.nabble.com/How-do-I-use-ASRP-maps-in-mapserver-tp4139935p4169069.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


Re: [mapserver-users] How do I use ASRP maps in mapserver?

2009-12-14 Thread Alans



Even Rouault wrote:
> 
> Alan,
> 
> SRP driver has been added into GDAL SVN trunk a few months ago, so it 
> will be part of the GDAL 1.7.0 release.
> 
> 

It does not seem to matter which version of GDAL I try, gdalinfo MyFile.IMG
always reports 
'MyFile.IMG not recognised as a supported format'. 

The most recent version of GDAL that I tried was gdal-svn-trunk-2009.12.14.
'gdalinfo --version' reports 'GDAL 1.7.0dev, released 2008/11/26'. Where
does this strange date come from?

'gdalinfo --formats' does list SRP as a supported format.
srpdataset.cpp is present in the frmts/adrg directory.

Just in case it is important, I had to configure GDAL with '--without
-libtool' to get it to build on my system (SLES 10).

Any ideas anyone?
-- 
View this message in context: 
http://n2.nabble.com/How-do-I-use-ASRP-maps-in-mapserver-tp4139935p4165318.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


Re: [mapserver-users] How do I use ASRP maps in mapserver?

2009-12-09 Thread Alans



Jeff McKenna wrote:
> 
> 
> First, you should execute 'gdalinfo --formats' on your server to check
> if you has SRP support.  Look for something like "SRP (ro) : Standard 
> Raster Product (ASRP/USRP)" in the returned list of formats; this will 
> verify that your local MapServer/GDAL build can read the ASRP format.
> 

Thanks Jeff,

It looks like my GDAL is out of date. 'gdal --version' reports:

  GDAL 1.6.0dev, FWTools 2.0.6, released 2008/02/03

'gdalinfo --formats' does not list SRP as a supported format.

My GDAL came as part of FWTools. I will attempt to update GDAL and try
again.

Alan
-- 
View this message in context: 
http://n2.nabble.com/How-do-I-use-ASRP-maps-in-mapserver-tp4139935p4140373.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] How do I use ASRP maps in mapserver?

2009-12-09 Thread Alans

Can anyone tell me how to use ASRP maps in mapserver, or point me at some
relevant documentation. The GDAL list of supported raster formats indicates
that this should be possible (http://www.gdal.org/frmt_various.html#SRP) but
I can't find any instructions as to how to specify this format in a LAYER of
a .map file.
-- 
View this message in context: 
http://n2.nabble.com/How-do-I-use-ASRP-maps-in-mapserver-tp4139935p4139935.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


Re: [mapserver-users] Full CADRG and VPF support

2009-12-07 Thread Alans

Has anyone managed to get this to work, i.e. creating an index from an a.toc
file, or 
directly refering to an a.toc file in the map file? or is it necessary to
generate an index
from the image files directly, as seems to be specified by others?


Even Rouault wrote:
> 
> Or more simple, from GDAL 1.5, RPF products are directly supported.
> 
> So you can do :
> 
> gdaltindex tile_index.shp NITF_TOC_ENTRY:CADRG_JOG-A_250K_1_0:rpf/a.toc 
> NITF_TOC_ENTRY:CADRG_JOG-A_250K_1_1:rpf/a.toc
> 
> where those NITF_TOC_ENTRY values are the SUBDATASET_X_NAME values
> reported by 
> gdalinfo on the A.TOC file.
> 
> For VPF, you need to build OGR with OGDI support. After that, you can
> handle 
> it directly in mapserver through an OGRConnection (but that may be slow as 
> VPF reading is not fast), or use ogr2ogr to convert it into shapefiles 
> before. I use the latest option in production environment for speed
> reasons, 
> as you can use spatial indexing on shapefiles.
> 
> 
> Le Tuesday 08 July 2008 11:56:14 Pål Kristensen, vous avez écrit :
>> Hi!
>>
>> You can build a tileindex with the gdaltindex utility, and then reference
>> the tileindex in a raster layer. You have to run the tileindex utility
>> one
>> time for each sub folder
>>
>> gdaltindex rpf_jog.shp /RPF/CJGA/CJGAZ03/*.ja*
>> gdaltindex rpf_jog.shp /RPF/CJGA/CJGAZ04/*.ja*
>>
>> or for example make a small python script that runs recursively trough
>> all
>> sub folders and executes the gdaltindex utility.
>>
>> I have done this to serve out many JOG products (complete CD's) in on
>> layer. The layer could then look something like this.
>>
>>LAYER
>>   NAME "JOG_Mosaic"
>>   STATUS ON
>>   DEBUG 5
>>   TILEINDEX "rpf_jog.shp"
>>   TILEITEM "Location"
>>   TYPE RASTER
>>   #MINSCALE 30
>>   MAXSCALE 60
>>   PROCESSING "RESAMPLE=AVERAGE"
>>   #PROCESSING "RESAMPLE=BILINEAR"
>>   PROCESSING "OVERSAMPLE_RATIO=8" # 8 improves the output image
>> greatly, could try other values
>>   GROUP "JOG"
>>   METADATA
>>  "wms_title" "JOG Mosaic"
>>  "wms_group_title" "JOG"
>>  "wms_style" "Default"
>>   END
>>   PROJECTION
>>  "init=epsg:4326"
>>   END
>>END
>>
>> Admin-267 wrote:
>> > CADRG works only partialy, I have to add partial files with .ON2 or
>> .ON3
>> > extension as layers, not A.TOC file, which defines this files.
>> >
>> > For example:
>> >
>> > Now I have to write:
>> >   LAYER
>> > NAME cadrg_1
>> > TYPE RASTER
>> > DATA 'ONZ03\0001P011.ON3'
>> > STATUS DEFAULT
>> >   END
>> >   .
>> >   .
>> >   .
>> >   LAYER
>> > NAME cadrg_n
>> > TYPE RASTER
>> > DATA 'ONZ03\0001P0nn.ON3'
>> > STATUS DEFAULT
>> >   END
>> >
>> > But I would like to write:
>> >   LAYER
>> > NAME cadrg_all
>> > TYPE RASTER
>> > DATA 'A.TOC'
>> > STATUS DEFAULT
>> >   END
>> >
>> > I read that mapserver have CADRG/RPF support for TOC files, but how to
>> > enable it?
>> > Also, how to enable VPF support? I know, that i can convert VPF to SHP,
>> > but is there other solution?
>> > ___
>> > mapserver-users mailing list
>> > mapserver-users@lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Full-CADRG-and-VPF-support-tp1972100p4126971.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