[gdal-dev] spatial filter problem

2012-02-10 Thread Mohammed Rashad
OGRLinearRing oSpatialFilter; oSpatialFilter.setNumPoints(5); oSpatialFilter.setPoint(0, rect.minx, rect.miny); oSpatialFilter.setPoint(1, rect.maxx, rect.miny); oSpatialFilter.setPoint(2, rect.maxx, rect.maxy); oSpatialFilter.setPoint(3, rect.minx, rect.maxy); oSpatialFilter.setPoin

[gdal-dev] gdal custom build

2011-10-20 Thread Mohammed Rashad
All, How to build gdal with only OGR support? I need to disable raster things from gdal Is it possible? I tried ./configure --help but no sucess -- Regards, Mohammed Rashad K M M.S. (By Research) student Lab for Spatial Informatics Department of CSE International Institute of

[gdal-dev] GDAL Javascript

2011-10-13 Thread Mohammed Rashad
Hi All, how can I use OGR to read shapefile using JavaScript Is this possible? If yes please tell me how. -- Regards, Mohammed Rashad K M M.S. (By Research) student Lab for Spatial Informatics Department of CSE International Institute of Information Technology Hyderabad

[gdal-dev] gdal android link error

2011-09-30 Thread Mohammed Rashad
.c:143: undefined reference to `inflateReset' /home/rashad/android/gdal/lib/libgdal.a(tif_zip.o): In function `ZIPSetupDecode': /home/rashad/android/gdal-trunk/frmts/gtiff/libtiff/tif_zip.c:108: undefined reference to `inflateInit_' /home/rashad/android/

[gdal-dev] tiled vector rendering

2011-08-10 Thread Mohammed Rashad
Is there any library which provide tiled vector rendering using GDAL/OGR ? how to build a tiled vector renderer.?? (big question expect any answer) Anyone please throw some light -- Thanks && Regards Rashad ___ gdal-dev mailing list gdal-dev@list

Re: [gdal-dev] Bug in SetField

2011-02-24 Thread Mohammed Rashad
t 10:39 PM, Frank Warmerdam wrote: > On 11-02-24 11:56 AM, Mohammed Rashad wrote: > >> my code >> field - fieldname is of string type and 0th field >> >> poFeature->SetField("fieldname","value"); >> >> >> poFeature->GetFieldAs

[gdal-dev] Bug in SetField

2011-02-24 Thread Mohammed Rashad
my code field - fieldname is of string type and 0th field poFeature->SetField("fieldname","value"); poFeature->GetFieldAsString(0); returns v instead of value; I dont know is it bug or my problem but I opened the shapefile in OpenJUMP and QGIS both shows field names as only v instead of value

[gdal-dev] multipolygon to polygon

2011-02-24 Thread Mohammed Rashad
How to convert mutipolygon to polygon my code string geometry = "MULTIPOLYGON (((76.742484035494002 9.949536084104899,76.783465713734998 9.8207365239198,76.818592866512006 9.8773302700617,76.842010968363994 9.931972507716001,76.742484035494002 9.949536084104899)))"; char *geom = (char *) geom

[gdal-dev] open shapefile from server

2011-02-18 Thread Mohammed Rashad
How can I open a shapefile and read the coordinates from it without downloading into client. just as mywebsite.com/shapefiles/myshape.shp and pass this to function as poDS = OGRSFDriverRegistrar::Open(" http://mywebsite.com/shapefiles/myshape.shp";, FALSE ); Is it possible in gdal/ogr? I dont kn

Re: [gdal-dev] Re: gdal android

2011-02-17 Thread Mohammed Rashad
m a écrit : > > On 11-02-17 06:00 AM, Mohammed Rashad wrote: > > > here is my new error log > > > cpl_strtod.cpp: In function 'void CPLReplacePointByLocalePoint(char*, > > > char)': cpl_strtod.cpp:200: error: 'struct lconv' has no member named

[gdal-dev] gdal install error version 1.5.0

2011-02-17 Thread Mohammed Rashad
Install error; console log bin/sh /home/rashadkm/gdal-1.5.0/libtool --mode=compile --tag=CXX arm-linux-androideabi-g++ -g -O2 -Wall -I/home/rashadkm/gdal-1.5.0/port -I/home/rashadkm/gdal-1.5.0/gcore -I/home/rashadkm/gdal-1.5.0/alg -I/home/rashadkm/gdal-1.5.0/ogr -I/home/rashadkm/gdal-1.5.0/ogr/o

[gdal-dev] Re: gdal android

2011-02-17 Thread Mohammed Rashad
mal_point' cpl_strtod.cpp:204: error: 'struct lconv' has no member named 'decimal_point' make[1]: *** [cpl_strtod.lo] Error 1 make[1]: Leaving directory `/home/rashadkm/gdal-1.8.0/port' make: *** [port-target] Error 2 Which gdal version to use for Android On Thu, Fe

[gdal-dev] gdal android

2011-02-17 Thread Mohammed Rashad
I am using android-ndk-r4-crystax. gdal is building proprerly but I am getting error when linking gdal with my application here is my error log /home/rashadkm/android/android-ndk-r4-crystax/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: /home/ra

[gdal-dev] convert shapefile to raster

2011-02-13 Thread Mohammed Rashad
How to convert shapefile to a raster image using gdal I tried gdal_rasterize -burn 255 -burn 0 -burn 0 -ts 100 100 -l ernakulam ernakulam.shp ekm.tif gdal_rasterize -A DIST -ts 100 100 -l ernakulam ernakulam.shp ekm.tif gdal_rasterize -A AREA -ts 100 100 -l ernakulam ernakulam.shp ekm.tif but s

[gdal-dev] gdal convert shape to raster

2011-02-12 Thread Mohammed Rashad
How to convert shapefile to raster using gdal or gdal_rasterize -- Thanks && Regards Rashad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Online Shapefile Viewer

2011-02-04 Thread Mohammed Rashad
Hi, Sorry if my post doesnt belong this ML. I am posting because gis users may find this application useful. here is an online shapefile viewer which reads shapefile using OGR and rendered on webpage. http://lsi.iiit.ac.in/lsi/shpviewer/ Here the shapefile is directly rendered without mapserver, ge

Re: [gdal-dev] reproject

2011-01-29 Thread Mohammed Rashad
is there any function in ogr to export the projection string to proj4. there is a function called importFromProj4 but nothing like export from proj4. i have the wkt of projection read from .prj file I need to convert it to proj4 string. On Sat, Jan 29, 2011 at 10:58 AM, Mohammed Rashad

[gdal-dev] reproject

2011-01-28 Thread Mohammed Rashad
How to reproject a shapefile to geographic coordinates by code? using OGR -- Rashad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] strange output in reading points of linear ring

2011-01-28 Thread Mohammed Rashad
OGRPolygon *polygon = (OGRPolygon *) poGeometry; OGRLinearRing *extring = polygon->getExteriorRing(); for(int i=0;igetNumPoints();i++) { cout << extring->getX(i) << ":" << extring->getY(i) << endl; } t

[gdal-dev] OGR GetExtent()

2011-01-28 Thread Mohammed Rashad
How to get the extent of an ogr data (shapefile). I need to read the xMin, yMin, xMax,yMax how to do that -- Rashad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] write to GML

2011-01-22 Thread Mohammed Rashad
this works poDS = OGRSFDriverRegistrar::Open( "point_out.xml", FALSE ); if( poDS == NULL ) { printf( "Open failed.\n" ); } but the following is not working poDS = OGRSFDriverRegistrar::Open( "point_out.xml", TRUE ); if( poDS == NULL ) { printf( "Open failed.\n" )

[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

[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] 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 fie

[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] OGR read polygon

2011-01-15 Thread Mohammed Rashad
u can use the wkb format for more clarity, but at the cost of more > computation. > > On Sun, Jan 16, 2011 at 11:56 AM, Mohammed Rashad < > mohammedrasha...@gmail.com> wrote: > >> how to read a polygon from wkbPolygon geome

[gdal-dev] OGR read polygon

2011-01-15 Thread Mohammed Rashad
how to read a polygon from wkbPolygon geometry type. how read its set of points or points that make up the polygon -- Rashad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] ogr shapefile viewer

2011-01-06 Thread Mohammed Rashad
On Thu, Jan 6, 2011 at 11:09 PM, Christopher Barker wrote: > On 1/6/11 9:19 AM, Mohammed Rashad wrote: > >>Instead of looking for code, I'd rather suggest to sit down and think >>what you need. I assure you, all you need you have in OGR tutorial >>on gdal

Re: [gdal-dev] ogr shapefile viewer

2011-01-06 Thread Mohammed Rashad
On Thu, Jan 6, 2011 at 10:45 PM, Mateusz Loskot wrote: > > On 06/01/11 17:06, Mohammed Rashad wrote: > >> when the window resize the size of shapefile is also changed. by "not >> working" I mean its not displaying shapefile correctly. >> > > This is

Re: [gdal-dev] ogr shapefile viewer

2011-01-06 Thread Mohammed Rashad
i checked it. Its not working properly and uses openGL On Thu, Jan 6, 2011 at 10:31 PM, Mateusz Loskot wrote: > On 06/01/11 16:53, Mohammed Rashad wrote: > >> >> Anyone plea se provide a source code of just a simple shapefile viewer >> in C/C++ or python >> >

[gdal-dev] ogr shapefile viewer

2011-01-06 Thread Mohammed Rashad
Anyone plea se provide a source code of just a simple shapefile viewer in C/C++ or python -- Rashad ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev