Re: [mapserver-users] Full CADRG and VPF support
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
Re: [mapserver-users] Full CADRG and VPF support
Hi! I would guess that there is a mismatch in the location attribute path in conjunction with the shapepath in the mapfile. These values are concatenated at runtime to build up the full path to each raster cell. Have you turned om logging in the mapfile, do you get any error messages? One way to find out if the geometry in the tileindex is correct, is to render the tileindex as a vector layer and visually see if the raster footprints are located as expected. If the are, the error is most likely to be the path issue. Regards, Pål Kristensen purnomod wrote: Hi paalkr, I have tried as per your suggestion. The gdaltindex is working fine and it created the tile index shape file with location attribute. the issue is when I open the layer in the GAIA it did not show anything. is there anything else that I need to do to make it work. The below is my mapserver configudation. Thank you very much in advance for your help LAYER NAME 'WMTS-006' STATUS ON DEBUG 5 TILEINDEX rpf_job.shp TILEITEM location GROUP JOG TYPE RASTER MAXSCALE 100 #MINSCALE 1 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 # Layer -- View this message in context: http://n2.nabble.com/Full-CADRG-and-VPF-support-tp1972100p2317029.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
I know nothing about vpf, but is your layer named 'shaded_relief' real of TYPE 'LINE'? Should it TYPE RASTER? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Admin Sent: Tuesday, July 15, 2008 7:22 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Full CADRG and VPF support Hi, thats me again:-) I have problems with VPF. I use FWTools 2.2.1, raster data and shapes are working perfectly, but VPF no :-(. My actual map file look that: MAP NAME World EXTENT -60 30 180 90 IMAGETYPE PNG IMAGECOLOR 255 255 255 STATUS ON SIZE 640 480 PROJECTION 'init=epsg:4326' END LAYER NAME shaded_relief TYPE LINE CONNECTIONTYPE OGR CONNECTION gltp:/vrf/C:/v0eur/vmaplv0/eurnasia DATA [EMAIL PROTECTED](*)_line STATUS DEFAULT END END When I type in my browser: http://127.0.0.1/cgi-bin/mapserv.exe?map=world.mapSERVICE=WMSVERSION= 1.1.0REQUEST=GetMapLAYERS=shaded_reliefSTYLES=SRS=EPSG:4326BBOX=14. 1,49,24.08,54.85WIDTH=1600HEIGHT=900FORMAT=image/png I see only white output, without any lines, without any errors. Thank you for your future advices :-) ___ 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
Re: [MAPSERVER-USERS] Full CADRG and VPF support
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 -- 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. ___ 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
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