[gdal-dev] GDAL Dataset to .NET Bitmap - PixelFormat issue
Hi all, I'm wodering whether it's possible to compute a proper System.Drawing.PixelFormat out of GDAL Dataset. I'm also aware of existing C# examples, but they won't allow for pinpointing specific PixelFormats. Please see attached 3 different RGB bitmaps: 16-bit, 24-bit and 32-bit. Is it possible to tell the difference by inspecting the GDAL Dataset? output_16bpp_gs.bmp http://osgeo-org.1560.x6.nabble.com/file/n5048271/output_16bpp_gs.bmp output_24bpp_rgb.bmp http://osgeo-org.1560.x6.nabble.com/file/n5048271/output_24bpp_rgb.bmp output_32bpp_rgb.bmp http://osgeo-org.1560.x6.nabble.com/file/n5048271/output_32bpp_rgb.bmp Regards, Maksim Sestic -- View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-Dataset-to-NET-Bitmap-PixelFormat-issue-tp5048271.html Sent from the GDAL - Dev mailing list archive at Nabble.com. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
[gdal-dev] gdal dataset
Hi All, I have generated gdal , ogr , osr dlls and added them to my c# project. Now i am trying to run the application that is given in gdal download which is named as gdalread.cs.When I run it , it is asking for a dataset . Can any one let me know if i have to specify filename over here. Actually i want to read enc file which has s57 datset. So, I am confused if i need to specify filelname or s57 over here. Awaiting reply. With Regards, Neelima Emmani ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] gdal dataset
Neelima, For me specifying the .000 file to ogrinfo and ogr2ogr worked. On Fri, Sep 7, 2012 at 11:32 AM, Neelima Emmani neelima.emm...@iictechnologies.com wrote: Hi All, I have generated gdal , ogr , osr dlls and added them to my c# project. Now i am trying to run the application that is given in gdal download which is named as gdalread.cs.When I run it , it is asking for a dataset . Can any one let me know if i have to specify filename over here. Actually i want to read enc file which has s57 datset. So, I am confused if i need to specify filelname or s57 over here. Awaiting reply. With Regards, Neelima Emmani ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev -- Best regards, Chaitanya kumar CH. +91-9494447584 17.2416N 80.1426E ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] gdal dataset
Neelima, Perhaps I didn't understand your question. You said that it was asking for a dataset. How did it ask? What were the error messages you got? In your future queries, please include as much information as you can provide. On Fri, Sep 7, 2012 at 12:42 PM, Neelima Emmani neelima.emm...@iictechnologies.com wrote: Hi Chaitanya, How did you do that. What version of gdal are you using. Can you please share your code snipplet with me. With Regards, Neelima Emmani -- *From:* Chaitanya kumar CH [chaitanya...@gmail.com] *Sent:* Friday, September 07, 2012 12:04 PM *To:* Neelima Emmani *Cc:* gdal-dev@lists.osgeo.org *Subject:* Re: [gdal-dev] gdal dataset Neelima, For me specifying the .000 file to ogrinfo and ogr2ogr worked. On Fri, Sep 7, 2012 at 11:32 AM, Neelima Emmani neelima.emm...@iictechnologies.com wrote: Hi All, I have generated gdal , ogr , osr dlls and added them to my c# project. Now i am trying to run the application that is given in gdal download which is named as gdalread.cs.When I run it , it is asking for a dataset . Can any one let me know if i have to specify filename over here. Actually i want to read enc file which has s57 datset. So, I am confused if i need to specify filelname or s57 over here. Awaiting reply. With Regards, Neelima Emmani ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev -- Best regards, Chaitanya kumar CH. +91-9494447584 17.2416N 80.1426E -- Best regards, Chaitanya kumar CH. +91-9494447584 17.2416N 80.1426E ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev