[gdal-dev] why some projection info can not read by ArcGIS9.3

2011-05-25 Thread atubar
Hi, everybody. I create a new tiff , just named it A, from another tiff (named B ), and set the projection by wkt which is read from the B. But prejection of A cann't be read by arcgis 9.3, and B can . what about the problem is? The projection info is like this : PROJCS["IMAGINE GeoTIFF Sup

[gdal-dev] OGRSpatialReference justify

2010-06-22 Thread atubar
hello, everyone. I need to justify whether one geotiff and one shapefile are in the same projection with IsSame function from OGR, which will compare the wkt info of OGRSpatialReference , like below. bool CompareWktIsUniform(const char* pszWkt1, const char* pszWkt2) { OGRSpatialReference S

[gdal-dev] how to compare two OGRSpatialReference is same?

2010-04-26 Thread atubar
Hello, I write some code below to compare OGRSpatialReference, bool CompareWktIsUniform(const char* pszWkt1, const char* pszWkt2) { OGRSpatialReference SR1(pszWkt1); OGRSpatialReference SR2(pszWkt2); int IsSame = SR1.IsSame(&SR2); if (IsSame == TRUE) return true; else return false; }

Re:Re: [gdal-dev] Is proj.4 lib necessary for Reprojection and Transformation?

2009-10-19 Thread atubar
Thank you. And what about those pvevious versions, such as from 1.6.0 to 1.6.2?___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re:Re:Re:Re:Re:Re: [gdal-dev] how to test the creation and deletion capability of ogr?

2009-10-19 Thread atubar
Hi, Thank you once more. As you said, it seems that GeoTiff and HDF also have subdatasets. So, I wonder that is there any character which can differ HDF from other formats?___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/

[gdal-dev] Is proj.4 lib necessary for Reprojection and Transformation?

2009-10-19 Thread atubar
After Reading API doc, I find it clear that GEOS lib is necessary for spatial analysis. And what about Proj? Does Gdal need supports from Proj lib for Reprojection and Transformation? ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osge

Re:Re:Re:Re:Re: [gdal-dev] how to test the creation and deletion capability of ogr?

2009-10-19 Thread atubar
Here is my local code and result, is there something wrong? char ** SUBDATASETS = GDALGetMetadata( (GDALDatasetH)m_pSrcDataset, "SUBDATASETS" ); After anterior code, for GTiff dataset, it return a NULL result. So I am puzzled that whether SUBDATASETS shared for GTiff?__

Re:Re:Re:Re: [gdal-dev] how to test the creation and deletion capability of ogr?

2009-10-18 Thread atubar
Hi, your explanation is so exhaustive, nothing better than thank you once more. Maybe the last one question on this topic, is "SUBDATASETS" also shared by Gtiff? ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/g

Re:Re:Re: [gdal-dev] how to test the creation and deletion capability of ogr?

2009-10-16 Thread atubar
Thanks for your guide, and I will read all api doc more carefully. And I wonder that is there a list of metadata domain now konwn such as subdataset ? ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re:Re: [gdal-dev] how to test the creation and deletion capability of ogr?

2009-10-16 Thread atubar
r program but not api doc. By generally reading the api doc, and as a freshman, I find it hard to get exact value of those const char params and options. Do you have a good idea? 在2009-10-16 01:50:33,"Even Rouault"  写道: >Selon Chaitanya kumar CH : > >Atubar > >As Cha

[gdal-dev] how to test the creation and deletion capability of ogr?

2009-10-15 Thread atubar
Hi, I want to take a test about the capability of creation and deletion for all supported formats of ogr . The code like below, The parameter "const char" are copied from api doc. But all flag return a value of 0, why ? int flag; flag=poDriver->TestCapability("ODrCCreateDataSource");

Re:Re: [gdal-dev] Are all Files of HDF5 Formats supported by Gdal with libhdf5?

2009-09-07 Thread atubar
Hi, I'm not quite sure about what you need to analyze the problem. But I will write down all details which I consider helpful. I build all dlls (gdal_HDF5.dll, gdal_HDF5Image.dll), add C:\gdal\gdal162\bld\bin as system variable. Then I reset VS2008 as VC++ with default settings, add C:\gdal\gd

[gdal-dev] Are all Files of HDF5 Formats supported by Gdal with libhdf5?

2009-09-05 Thread atubar
Hi, I'm working with HDF4 and HDF5 using gdal in VS2008, and I get lots of troubles which make me confused. As all the guides said, I modified the nmake.opt like this; MSVC_VER=1500 GDAL_HOME = "C:\GDAL\gdal-1.6.2\bld-162" # Uncomment the following and update to enable NCSA HDF Release 4 support.

Re:Re: [gdal-dev] Version of lib HDF5 Included in Gdal 1.62

2009-09-01 Thread atubar
Hello, thanks for your help. I check the release-1500-gdal-1-6-mapserver-5-4 package, and find out that gdal_HDF5.dll and gdal_HDF5Image.dll are under the folder \bin\gdal\plugins. To make HDF5 work well, these two dlls are essential, is it? By the way, It seems that these two dlls are copied

[gdal-dev] Version of lib HDF5 Included in Gdal 1.62

2009-09-01 Thread atubar
I'm a freshman, and I want to support HDF5 format in my program by using gdal, which version of lib HDF5 should be added to Gdal, 1.6.X or 1.8.x? It seems that 1.8.x has taken great changes. And it seems that gdal recommands 1.6.x, for c:\warmerda\supportlibs\hdf5\5-164-win listed in nmake.opt. B

Re:Re: [gdal-dev] Stack Overflow in gdal with HDF5 using VC2008

2009-08-27 Thread atubar
Today, I download a HDF5 sample data named hicam_catch-gray.re.ice.h5, from opticks which is an open source remote sensing software. Now the stack overflow error does not take place. I wonder that whether all HDF5 files are supported by HDF5dll integrated with gdal. And compiling gdal, which ve

Re:Re: [gdal-dev] Stack Overflow in gdal with HDF5 using VC2008

2009-08-13 Thread atubar
Today, I find a computer with VS2005 installed on it. And I build gdal 1.6.1 with pre-built dlls supplied as package named win42r4-VS2005-IVF101, hdf5_183_xp32_vs2005_ivf91 from HDFGroup website. While building, warnings can be ignored, and no error occurs. I copy dlls such as gdal16.dll, hd42

Re:Re: [gdal-dev] Stack Overflow in gdal with HDF5 using VC2008

2009-08-11 Thread atubar
08\\Projects\\GdalConsole\\Debug\\hdf5_test.h5"; char *pszFormat="HDF5"; GDALDriver *poDriver = GetGDALDriverManager()->GetDriverByName(pszFormat); // here poDriver is non-null pointer if( poDriver != NULL ) { } else { co

[gdal-dev] Stack Overflow in gdal with HDF5 using VC2008

2009-08-06 Thread atubar
Hello, I am a freshman in working with Gdal and HDF5 in Visual C++ 2008. I have built essential dlls as those guides said. And I got gdal16.dll, hdf5dll.dll and more. I set up a project , add include and lib to this project. Then I copy some sample codes to test how gdal and hdf5 works. These co