[MAPSERVER-USERS] Full CADRG and VPF support

Even Rouault even.rouault at mines-paris.org
Tue Jul 8 14:16:27 EDT 2008


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 300000
>       MAXSCALE 600000
>       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 at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list