Re: [gdal-dev] Layer.GetNextFeature() does not seem to get the next feature (Python 2.7.2, GDAL1.9.2

2012-12-20 Thread Even Rouault
Le vendredi 21 décembre 2012 05:36:09, David Verbyla a écrit : > I have a layer of 15 polygons from a shapefile. I can access the features > using Layer.GetFeature(i), > but not using Layer.GetNextFeature(). > > For example: > >>> polyFeature = pondsLayer.GetFeature(0) > >>> print polyFeature.Get

[gdal-dev] Layer.GetNextFeature() does not seem to get the next feature (Python 2.7.2, GDAL1.9.2

2012-12-20 Thread David Verbyla
I have a layer of 15 polygons from a shapefile. I can access the features using Layer.GetFeature(i), but not using Layer.GetNextFeature(). For example: >>> polyFeature = pondsLayer.GetFeature(0) >>> print polyFeature.GetFID() 0 >>> polyFeature = pondsLayer.GetFeature(1) >>> print polyFeature.GetF

Re: [gdal-dev] OGR XYZ -> GDAL VRT?

2012-12-20 Thread Brent Fraser
Hmmm. You need the GDAL-VRT format to have the same data-source flexibility currently in the OGR-VRT. Could be a useful enhancement with the growing interest in storing rasters in a RDBMs... Best Regards, Brent Fraser On 12/20/2012 10:38 AM, Tyler Mitchell wrote: On 2012-12-20, at 7:34 AM, B

Re: [gdal-dev] GML Invalid exterior ring

2012-12-20 Thread Moffatt, Greg
I think my response to Even didn't make it to the list; apologies, Even, for the redundant e-mail. Even, thank you so much. I have logged a ticket on the issue (#4934). You're right - the XML is far more verbose than it needs to be, although that seems to be a trait of SQL Server's FOR XML cl

Re: [gdal-dev] OGR XYZ -> GDAL VRT?

2012-12-20 Thread Tyler Mitchell
On 2012-12-20, at 7:34 AM, Brent Fraser wrote: > I've also constructed views in the database, basically reformatting the > lat/lon columns into WKT format to do: Hi Brent, you gave some good examples, thanks. This has been the approach I took so far, but is not precisely what I'm after. > Ho

Re: [gdal-dev] GML Invalid exterior ring

2012-12-20 Thread Even Rouault
Selon "Moffatt, Greg" : > Hi all, > > > > I've tried this query on the ms4w and mapserver lists without luck, so please > forgive my cross-post. I think the issue is somehow related to GDAL/OGR, so > I'm hoping someone on this list can shed some light. > > > > I have a GML file that's generated b

[gdal-dev] GML Invalid exterior ring

2012-12-20 Thread Moffatt, Greg
Hi all, I've tried this query on the ms4w and mapserver lists without luck, so please forgive my cross-post. I think the issue is somehow related to GDAL/OGR, so I'm hoping someone on this list can shed some light. I have a GML file that's generated by SQL Server that contains one or more

Re: [gdal-dev] OGR XYZ -> GDAL VRT?

2012-12-20 Thread Brent Fraser
Tyler, A while back I had a need to access (by Mapserver) points stored in a non-spatial SQL Server database. I was able to use OGR's VRT to access the data, and while the example below shows a datasource connection of ODBC, you may be able to use an Oracle OCI connection instead:

[gdal-dev] Tamas' GDAL/OGR windows installer as NuGet package

2012-12-20 Thread Felix Obermaier
Hello everyone, I just wanted to let the dotNet developers know that I've packaged the binaries provided by Tamas Szekeres (http://www.gisinternals.com/sdk) for use with NuGet (http://www.nuget.org/). You can get the package following the instructions provided here: http://nuget.org/packages/G

Re: [gdal-dev] OGR XYZ -> GDAL VRT?

2012-12-20 Thread Tyler Mitchell
On 2012-12-19, at 10:54 PM, Even Rouault wrote: > Le jeudi 20 décembre 2012 02:08:01, vous avez écrit : >> Hi all, does anyone know a way to put up a GDAL VRT fed by an OGR >> datasource that has data in XYZ format (regular gridded) . >> >> It doesn't have to ultimately be a VRT, just some simila