Re: [gdal-dev] [SOLVED] How to create TIFF with overview from a TMS server ?

2011-01-21 Thread Jean-Claude Repetto
Le 20/01/2011 14:48, Jean-Claude Repetto a écrit : Le 20/01/2011 14:33, c.str...@dlr.de a écrit : so you can use gdal_merge or gdalwarp. i thought your problem was the pyramid building I know that I can assemble the 4 tiles with gdalwarp or gdal_merge. But how do I assemble the resulting 512x

[gdal-dev] create attribute table

2011-01-21 Thread Mohammed Rashad
how to create attribute table for vector using ogr? -- Rashad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] create attribute table

2011-01-21 Thread Frank Warmerdam
On 11-01-21 09:49 AM, Mohammed Rashad wrote: how to create attribute table for vector using ogr? Mohammed, New attribute fields are created on a vector layer in OGR using the CreateField() method on the layer. This is covered in the read/write tutorial (search for CreateField about 2/3 of th

Re: [gdal-dev] create attribute table

2011-01-21 Thread Mohammed Rashad
thanks Frank. i mailed without looking the api tutorial. sorry On Fri, Jan 21, 2011 at 8:31 PM, Frank Warmerdam wrote: > On 11-01-21 09:49 AM, Mohammed Rashad wrote: > >> how to create attribute table for vector using ogr? >> >> > Mohammed, > > New attribute fields are created on a vector layer i

[gdal-dev] OGR Layer string representation

2011-01-21 Thread Frank Broniewski
Hello, Is it possible to get a string representation of text-datasources (gml, geojson, etc.) from a OGRLayer or OGRDatasource? Is it maybe possible to write to STDOUT instead of a file? Many thanks for tipps Frank ___ gdal-dev mailing list gdal-de

[gdal-dev] segfault on importFromWkt

2011-01-21 Thread Mohammed Rashad
#include "ogrsf_frmts.h" #include int main() { const char *pszDriverName = "ESRI Shapefile"; OGRSFDriver *poDriver; OGRRegisterAll(); OGRDataSource *poDS; poDS = OGRSFDriverRegistrar::Open( "point_out.shp", FALSE ); if( poDS == NULL ) { cout << "Open fail

Re: [gdal-dev] segfault on importFromWkt

2011-01-21 Thread Frank Warmerdam
On 11-01-21 12:47 PM, Mohammed Rashad wrote: OGRGeometry *OLGeometry; char *geom = "POINT(6 10)"; OLGeometry->importFromWkt(&geom); } Rashad, The problem is that OLGeometry is an unitialized pointer as opposed to being a valid geometry object on which a method could be inv

[gdal-dev] append features to shapefile

2011-01-21 Thread Mohammed Rashad
How can I add features to a shapefile using OGR? -- Rashad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] append features to shapefile

2011-01-21 Thread Chaitanya kumar CH
Rashad, Refer to the OGR API tutorial, especially the topic "Writing to OGR". You can add features to already existing data source, including shapefiles. On Sat, Jan 22, 2011 at 12:31 AM, Mohammed Rashad < mohammedrasha...@gmail.com> wrote: > > How can I add features to a shapefile using OGR? >