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 );
}
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev