[gdal-dev] WFS-T using OGR
Ahmed Tolba
Ahmed.Tolba at schiebel.net
Fri Jan 27 02:20:36 PST 2017
I followed the example here. http://www.gdal.org/ogr_apitut.html
How would I set a transaction through a webserver.
The tutorial only shows how to do it on disk.
Is it possible to write a transaction WFS-T using a server call ?
m_wfs_t = OGRSFDriverRegistrar::Open("http://192.168.139.128/cgi-bin/tinyows.exe?SERVICE=WFS&VERSION=1.0.0",true);
OGRFeature *poFeature;
poFeature = OGRFeature::CreateFeature( poLayer->GetLayerDefn() );
poFeature->SetField( "Name", "poiAhmed" );
OGRPoint pt;
pt.setX( 120 );
pt.setY( 240 );
poFeature->SetGeometry( &pt );
if( poLayer->CreateFeature( poFeature ) != OGRERR_NONE )
{
printf( "Failed to create feature in shapefile.\n" );
exit( 1 );
}
More information about the gdal-dev
mailing list