[gdal-dev] Dissolve shapefile using GDAL/OGR

2013-02-26 Thread Hugo Benicio
Hi! So, My question is pretty simple. I'm developing a software in C++ that uses GDAL/OGR library to handle geoprocessing computations. What I need to do now is to dissolve a shapefile by a column (similiar to the Quantum GIS tool "Vector > Geoprocessing Tools > Dissolve"). Does GDAL/OGR already s

Re: [gdal-dev] Dissolve shapefile using GDAL/OGR

2013-02-26 Thread Hugo Benicio
nswers! Best Regards, Hugo Benício. On Tue, Feb 26, 2013 at 11:16 AM, Jukka Rahkonen wrote: > Hugo Benicio gmail.com> writes: > > > > > Hi! > > So, My question is pretty simple. > > I'm developing a software in C++ that uses GDAL/OGR library to handle >

[gdal-dev] Creating an OGRPolygon from an OGREnvelope

2013-08-30 Thread Hugo Benicio
Hi guys! Easy question here: I have an OGREnvelope describing a rectangle that I want to use as an OGRPolygon. What is the correct way to do that? What I need is a OGRPolygon representing a rectangle from my OGREnvelope. Do I have to manually assign point by point to it? (how?) Or there is some ha

Re: [gdal-dev] Creating an OGRPolygon from an OGREnvelope

2013-09-06 Thread Hugo Benicio
int by point from the > envelope values. Kind of sucky, I know. > > Best regards, > Frank > > > On Fri, Aug 30, 2013 at 11:57 AM, Hugo Benicio wrote: > >> Hi guys! Easy question here: >> >> I have an OGREnvelope describing a rectangle that I want to use as a

[gdal-dev] Building GDAL 1.9.2 for debugging

2013-11-08 Thread Hugo Benicio
I'm trying to compile GDAL 1.9.2 from source by myself using the DEBUG=1 build. There is a flag on nmake.opt for VLD support: MSVC_VLD_DIR="C:\Program Files\Visual Leak Detector" although, if I try to use it, it give me strange error while building gdal. Anyways, I'm building gdal like this: nma

Re: [gdal-dev] Building GDAL 1.9.2 for debugging

2013-11-08 Thread Hugo Benicio
Nevermind, I got it I was missing nmake /f makefile.vc devinstall On Fri, Nov 8, 2013 at 10:21 AM, Hugo Benicio wrote: > I'm trying to compile GDAL 1.9.2 from source by myself using the DEBUG=1 > build. > > There is a flag on nmake.opt for VLD support: > MSVC_VLD_DIR=&quo

[gdal-dev] Can't create feature on layer for polygon

2012-10-22 Thread Hugo Benicio
Hi guys! I'm trying to create a shapefile containing a single polygon, but unfortunately I'm facing an error that I have no clue how to solve. I'm successfuly creating a datasource and a layer with: OGRLayer* testLayer = newDataSource->CreateLayer("test",NULL, wkbPolygon, NULL); Then when I try

Re: [gdal-dev] Can't create feature on layer for polygon

2012-10-22 Thread Hugo Benicio
sible) or how do I correctly change the geometry type of my geometry (from *wkbGeometryCollection *to *wkbPolygon*)? * * Thanks in advance, Hugo Benício. * * On Mon, Oct 22, 2012 at 11:24 AM, Hugo Benicio wrote: > Hi guys! > > I'm trying to create a shapefile containing a single polygon, b

Re: [gdal-dev] Can't create feature on layer for polygon

2012-10-22 Thread Hugo Benicio
For anyone else having the same problem like mine, I solved my issue just iterating over the wkbGeometryCollection, gathering all polygons in it and creating a feature for the my layer for each of them. On Mon, Oct 22, 2012 at 1:31 PM, Hugo Benicio wrote: > Ok, I've discovered that m

Re: [gdal-dev] gdaltransform - output into textfile

2012-10-23 Thread Hugo Benicio
if you remove the output redirection >"Grid.txt", what does it do? gdaltransform -s_srs EPSG:4326 -t_srs EPSG:3857 < "WGS84.txt" Does it print the output on you console/terminal? gdaltransform is actually generating an output? (You redirection syntax seems ok) On Tue, Oct 23, 2012 at 9:49 AM, Er

[gdal-dev] IRC channel?

2012-11-22 Thread Hugo Benicio
Is there an IRC channel for this group (gdal dev) or any other channel for chatting with other gdal developers? ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] IRC channel?

2012-11-22 Thread Hugo Benicio
Thanks for your quick replies! :) (I totally missed this info on the http://gdal.org, sorry :P) On Thu, Nov 22, 2012 at 10:51 AM, Yves Jacolin (Free) wrote: > Hugo, > > Le jeudi 22 novembre 2012 10:36:18 Hugo Benicio a écrit : > > Is there an IRC channel for this group (gdal de

Re: [gdal-dev] MULTILINESTRING to MULTIPOLYGON using ogr2ogr

2012-11-26 Thread Hugo Benicio
I'm facing a similar problem when trying to convert a shapefile containing lines to a shapefile containing polygons. No progress. If you solve it, please, let me know! Thanks in advance. On Mon, Nov 26, 2012 at 8:47 AM, Alisson Barbosa wrote: > Can anybody help me? > > > 2012/11/23 Alisson Barb

Re: [gdal-dev] MULTILINESTRING to MULTIPOLYGON using ogr2ogr

2012-11-27 Thread Hugo Benicio
ad up on the operations involved, one of the most >> approachable texts is 'GIS Basics' by Steve Wise (Taylor & Francis, >> 2002). The good news is that there are calls in the OGR API to >> implement each of the steps involved. >> >> Best wishes, >&g