Re: [Gdal-dev] C# Osr.GetProjectionMethodParameterList Access Violation

2009-06-04 Thread Diaren
*type, double *defaultval ); %clear (char **usrname); %clear (char **type); Diaren wrote: > > Problem is I don't know the first thing about how swig works... and If I > modify the OPTGetParameterList to use CPLStrdup or something, then that > will cause problems for other code whi

Re: [Gdal-dev] C# Osr.GetProjectionMethodParameterList Access Violation

2009-06-04 Thread Diaren
Further to that the same problem will most likely exist with CSharp_GetProjectionMethodParamInfo... Diaren wrote: > > Hi I've been building a projection dialog box in C# Windows, and have come > across a bug/problem with the generated swig wrappers for > GetProjectionMe

[Gdal-dev] C# Osr.GetProjectionMethodParameterList Access Violation

2009-06-04 Thread Diaren
Hi I've been building a projection dialog box in C# Windows, and have come across a bug/problem with the generated swig wrappers for GetProjectionMethodParameterList / OPTGetParameterList. The problem is that the generated Swig Wrapper osr_wrap.cpp frees the Username passed back from OPTGetParamet

Re: [Gdal-dev] Building a Projection Dialog

2009-05-11 Thread Diaren
Frank Warmerdam wrote: > > I will mention the rarely used OPT functions: > > char CPL_DLL ** OPTGetProjectionMethods(); > char CPL_DLL ** OPTGetParameterList( const char * pszProjectionMethod, > char ** ppszUserName ); > int CPL_DLL OPTGetParameterInfo( const char

[Gdal-dev] Building a Projection Dialog

2009-05-11 Thread Diaren
Using the SWIG C# libraries I'm attemtping to build a projected/Geographic SpatialReference creation/edit dialog like you see in various GIS applications, which has as the main components: Projection Method Projection Parameters Datum Edit Datum -> Ellipsoid, 3/7 Parameter Transformation paramete

[Gdal-dev] Building a Projection Dialog

2009-05-11 Thread Diaren
Using the SWIG C# libraries I'm attemtping to build a projected/Geographic SpatialReference creation/edit dialog like you see in various GIS applications, which has as the main components: Projection Method Projection Parameters Datum Edit Datum -> Ellipsoid, 3/7 Parameter Transformation paramete