Changes between Initial Version and Version 1 of GdalOgrCsharpVersions


Ignore:
Timestamp:
Apr 6, 2007, 4:15:02 PM (17 years ago)
Author:
tamas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GdalOgrCsharpVersions

    v1 v1  
     1
     2= GDAL/OGR CSharp interface versions =
     3
     4The GDAL/OGR CSharp interface is fairly new and the first official version was published along with the GDAL 1.4.0 release. As of the 1.4.0 release there was a substantial evolution in the interface based on the various user requests. Some of these changes in the current version (1.5.0) were backward incompatible with 1.4.0 and currently the transition to the current development version is suggested for the interface users and 1.4.0 is considered as deprecated.
     5
     6== The main differences between 1.4.0 and 1.5.0, and the migration steps for the existing code ==
     7
     8This chapter described the fundamental differences between the 1.4.0 and 1.5.0 versions. Although the 1.5.0 version is not yet released the CSharp interface users are encouraged to make this transition since it will be more difficult to make these steps later.
     9
     10=== Support for the enumerated types of the C# interface (#1559) ===
     11
     12The 1.4.0 version treats the enumerated types as integers. Handling integers instead of enums is quite uncomfortable for the .NET developers since they don't enjoy the benefit of the autocompletion support of the IDE. The 1.5.0 version exposes the enumerated types to the interface and therefore the programmer should use the proper values instead of integer constants of the module class or using the gdalconst assembly. Every CSharp sample application has also been modified to reflect this behaviour.
     13
     14As an example in GDALColorTable.cs we use
     15
     16{{{
     17ds = Gdal.Open(file, Access.GA_ReadOnly)
     18}}}
     19
     20instead of
     21
     22{{{
     23ds = Gdal.Open(file, gdalconst.GA_ReadOnly)
     24}}}
     25
     26=== C# namespace names and module names follows the .NET framework naming guidelines (#1560) ===
     27
     28The C# namespace names and the module names were changed according to the [Microsoft.NET naming guidelines http://msdn2.microsoft.com/en-us/library/4xhs4564(VS.71).aspx].
     29
     30The general rule for naming namespaces is to use the company name followed by the technology name and optionally the feature and design as follows.
     31
     32{{{
     33CompanyName.TechnologyName[.Feature][.Design]
     34}}}
     35
     36For example:
     37
     38{{{
     39Microsoft.Media
     40Microsoft.Media.Design
     41}}}
     42
     43You should use *PascalCase* for namespaces, and separate logical components with periods, and avoid using the same name for a namespace and a class.
     44
     45=== Changed the names of the Windows builds for a better match with the GNU/Linux/OSX builds ===
     46
     47=== The gdalconst assembly is now deprecated ===
     48
     49=== Added support for Dataset.BuildOverviews (#1552) ===
     50
     51=== GDAL C# libtool build support (#1558) ===
     52
     53=== CreateFromWkb support (#1565) ===
     54
     55=== Dataset.ReadRaster, Dataset.WriteRaster support ===
     56
     57=== Examples added ===