Re: [osg-users] Problems with VPB and DTED data.
Hi Guys, Today I've got back on the VirtualPlanetBuilder horse and will steadily working through merging submissions and doing my own bug fixes, once I'm back on top of this I'll tag another dev release. The first item on my todo list was to fix the vpb::System::isFileTypeSupported code so that it now uses a fallback of checking for a file support by directly opening it with GDAL then on success marking the extension type as supported or on failure marking the extension as unsupported in locally maintained extension black list. I've been trying it out on data I have here and it's correctly picking up on dt1 files that I have, and correctly rejectting .txt files. I've checked these fixes into VPB svn/trunk. Could you guys do an update and let me know how you get on, Cheers, Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Problems with VPB and DTED data.
Hi, Sewell, Kenneth R Civ USAF AFMC AFRL/RYZW wrote: what OS are you using? What version of GDAL? On Linux I've not had a problem reading .dt? files. OpenSuSE Linux 11.0, VPB rev 953, OSG 2.8.0 and GDAL 1.6.0. I'm not sure how it's working for you if you're using the version of VPB that checks extensions. Did you modify GDAL to report the .dt? file extensions? You are right, I must have used an earlier version of vpb that did read my files (I have a working DB with the input data as DTED). The newest VPB ignores my .dt2 files. jp Ken Sewell, Kenneth R Civ USAF AFMC AFRL/RYZW wrote: It seems that VPB (SVN revision 953) won't accept DTED data. Looking at the VPB code, VPB gets a list of GDAL supported extensions (and adds a few that GDAL doesn't report). Looking at GDAL, it fails to report the DTED extensions (.dt0, .dt1, .dt2) via the GetMetadataItem(DMD_EXTENSIONS) method. The result is VPB reports that DTED files are not supported. I don't know if the fix belongs in GDAL or VPB, but as a quick work-around add the following lines to the end of the VPB System constructor (src/vpb/System.cpp): addSupportedExtension(dt0, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 0); addSupportedExtension(dt1, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 1); addSupportedExtension(dt2, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 2); Ken. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users- openscenegraph.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users- openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Problems with VPB and DTED data.
what OS are you using? What version of GDAL? On Linux I've not had a problem reading .dt? files. OpenSuSE Linux 11.0, VPB rev 953, OSG 2.8.0 and GDAL 1.6.0. I'm not sure how it's working for you if you're using the version of VPB that checks extensions. Did you modify GDAL to report the .dt? file extensions? Ken Sewell, Kenneth R Civ USAF AFMC AFRL/RYZW wrote: It seems that VPB (SVN revision 953) won't accept DTED data. Looking at the VPB code, VPB gets a list of GDAL supported extensions (and adds a few that GDAL doesn't report). Looking at GDAL, it fails to report the DTED extensions (.dt0, .dt1, .dt2) via the GetMetadataItem(DMD_EXTENSIONS) method. The result is VPB reports that DTED files are not supported. I don't know if the fix belongs in GDAL or VPB, but as a quick work-around add the following lines to the end of the VPB System constructor (src/vpb/System.cpp): addSupportedExtension(dt0, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 0); addSupportedExtension(dt1, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 1); addSupportedExtension(dt2, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 2); Ken. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users- openscenegraph.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users- openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Problems with VPB and DTED data.
Hi Ken, This topic is really an continuation of your earlier post about extension-less source data, I'll assume you've read my reply to the earlier message in this reply. My hope with the code in vpb::System::System that queries supported GDAL's file extensions was that it'd catch all supported formats, but if the list isn't complete then this may well be a GDAL bug/incompleteness. Since users will use VPB against a range of different versions of GDAL then I'd suggest we add the missing ones into the System::System header to catch them. Perhaps one thing we could do is when we read a source file we check against the supported extension list, if it matches then accept the source file, if it doesn't match then check a black list of unsupported extensions, if it matches then reject it, else check the file by trying to load it with GDAL then if it succeeds accept it, and add the extension to the white list, if it fails add it to the black list. Such as scheme should allow us to steadily build up the list of supported/unsupported files. Robert. On Mon, Feb 23, 2009 at 7:12 PM, Sewell, Kenneth R Civ USAF AFMC AFRL/RYZW kenneth.sew...@wpafb.af.mil wrote: It seems that VPB (SVN revision 953) won't accept DTED data. Looking at the VPB code, VPB gets a list of GDAL supported extensions (and adds a few that GDAL doesn't report). Looking at GDAL, it fails to report the DTED extensions (.dt0, .dt1, .dt2) via the GetMetadataItem(DMD_EXTENSIONS) method. The result is VPB reports that DTED files are not supported. I don't know if the fix belongs in GDAL or VPB, but as a quick work-around add the following lines to the end of the VPB System constructor (src/vpb/System.cpp): addSupportedExtension(dt0, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 0); addSupportedExtension(dt1, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 1); addSupportedExtension(dt2, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 2); Ken. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Problems with VPB and DTED data.
It seems that VPB (SVN revision 953) won't accept DTED data. Looking at the VPB code, VPB gets a list of GDAL supported extensions (and adds a few that GDAL doesn't report). Looking at GDAL, it fails to report the DTED extensions (.dt0, .dt1, .dt2) via the GetMetadataItem(DMD_EXTENSIONS) method. The result is VPB reports that DTED files are not supported. I don't know if the fix belongs in GDAL or VPB, but as a quick work-around add the following lines to the end of the VPB System constructor (src/vpb/System.cpp): addSupportedExtension(dt0, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 0); addSupportedExtension(dt1, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 1); addSupportedExtension(dt2, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 2); Ken. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Problems with VPB and DTED data.
Hi, what OS are you using? What version of GDAL? On Linux I've not had a problem reading .dt? files. jp Sewell, Kenneth R Civ USAF AFMC AFRL/RYZW wrote: It seems that VPB (SVN revision 953) won't accept DTED data. Looking at the VPB code, VPB gets a list of GDAL supported extensions (and adds a few that GDAL doesn't report). Looking at GDAL, it fails to report the DTED extensions (.dt0, .dt1, .dt2) via the GetMetadataItem(DMD_EXTENSIONS) method. The result is VPB reports that DTED files are not supported. I don't know if the fix belongs in GDAL or VPB, but as a quick work-around add the following lines to the end of the VPB System constructor (src/vpb/System.cpp): addSupportedExtension(dt0, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 0); addSupportedExtension(dt1, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 1); addSupportedExtension(dt2, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 2); Ken. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Problems with VPB and DTED data.
Hi, must admit I have not tried the latest OSG version, maybe it's a change in OSG and not VPB? jp J.P. Delport wrote: Hi, what OS are you using? What version of GDAL? On Linux I've not had a problem reading .dt? files. jp Sewell, Kenneth R Civ USAF AFMC AFRL/RYZW wrote: It seems that VPB (SVN revision 953) won't accept DTED data. Looking at the VPB code, VPB gets a list of GDAL supported extensions (and adds a few that GDAL doesn't report). Looking at GDAL, it fails to report the DTED extensions (.dt0, .dt1, .dt2) via the GetMetadataItem(DMD_EXTENSIONS) method. The result is VPB reports that DTED files are not supported. I don't know if the fix belongs in GDAL or VPB, but as a quick work-around add the following lines to the end of the VPB System constructor (src/vpb/System.cpp): addSupportedExtension(dt0, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 0); addSupportedExtension(dt1, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 1); addSupportedExtension(dt2, Source::IMAGE | Source::HEIGHT_FIELD, DTED Level 2); Ken. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org