[MAPSERVER-USERS] Full CADRG and VPF support

Pål Kristensen pal.kristensen at statkart.no
Tue Jul 8 02:56:14 PDT 2008


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
> 
> 

-- 
View this message in context: http://www.nabble.com/Full-CADRG-and-VPF-support-tp18334249p18335684.html
Sent from the Mapserver - User mailing list archive at Nabble.com.




More information about the MapServer-users mailing list