[Gdal-dev] ogr gml reader needs an update

Frank Warmerdam warmerdam at pobox.com
Wed May 24 22:45:56 EDT 2006


Peter Rushforth wrote:
> Hi Frank,
> 
> I have made the following updates:
> 
> gmlreader.h
> 
> -added m_nWidth class member to GMLPropertyDefn
> -added getter and setter for m_nWidth member
> 
> gmlpropertydefn.cpp
> 
> -modified member function AnalysePropertyValue() to set the m_szWidth
> member via SetWidth method in the case of a string value
> 
> gmlfeatureclass.cpp
> 
> -added code to set property definition width member to value of Width
> element found in .gfs file
> 
> The system does create the correctly populated Width element in the .gfs 
> file,
> but the m_szWidth member is ignored by the ogr2ogr system when it comes
> to creating the output layer.  Could you point out where I need to look 
> to make
> that change please?

Peter,

I have applied your changes, and updated TranslateGMLSchema() in
ogrgmldatasource.cpp to apply this to the OGRFeatureDefn.

You can grab that change from:

   http://www.gdal.org/srctree/ogr/ogrsf_frmts/gml/ogrgmldatasource.cpp

Thanks for your contribution!

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list