Re: [gdal-dev] OGR Geometry methods

2011-07-11 Thread Chaitanya kumar CH
Marius, Please do file a ticket with a small shapefile that shows this error. http://trac.osgeo.org/gdal/newticket On Tue, Jul 12, 2011 at 8:30 AM, Marius Jigmond wrote: > ** > After some more investigation that is likely NOT the issue. I have an > ExecuteSQL statement which selects a certain po

Re: [gdal-dev] OGR Geometry methods

2011-07-11 Thread Marius Jigmond
After some more investigation that is likely NOT the issue. I have an ExecuteSQL statement which selects a certain polygon based on an attribute value. Unfortunately it seems to return the wrong feature. The feature I query for is unique so a duplicate is out of the question. Here's the code: #!/u

Re: [gdal-dev] OGR Geometry methods

2011-07-11 Thread Marius Jigmond
I suppose a piece of code speaks louder :): xsect = False for i in range(gridLayer.GetFeatureCount()): feat = gridLayer.GetFeature(i) geom = feat.GetGeometryRef() point = geom.Centroid() for j in range(aqLayer.GetFeatureCount()): aqfeat = aqLayer.GetFeature(j) aqgeom = aqfeat.GetGe

[gdal-dev] OGR Geometry methods

2011-07-11 Thread Marius Jigmond
Hi everyone, I am trying to test whether centroids of polygons lie/intersect within another polygon. I have tried Intersect, Within, and Contains but they always return false. Should these methods work for my intended purpose or do I need to implement a point in polygon function? Thanks. -marius

Re: [gdal-dev] GML without geometry export forward shapefile with null geometry

2011-07-11 Thread aperi2007
Il 10/07/2011 23:19, Even Rouault ha scritto: Le samedi 09 juillet 2011 21:04:25, aperi2007 a écrit : Andrea, Yes, I've confirmed that the GML driver doesn't handle wkbNone layers in a optimal way. I've created http://trac.osgeo.org/gdal/ticket/4154 and commited the appropriate fixes. Best rega

Re: [gdal-dev] gdalnumeric problems with Python 3.2 Windows 7 64 bit

2011-07-11 Thread Isaac Gerg
Just ignore this. Its from a colleague of mine. I reposted because for some reason his message did not get posted to the list in a timeframe close to when my messages are posted. Apologies. On Mon, Jul 11, 2011 at 1:55 PM, ELLIOT JAY RILEY wrote: > Hi everyone, > > I am using GDAL 1.8.1 with P

[gdal-dev] gdalnumeric problems with Python 3.2 Windows 7 64 bit

2011-07-11 Thread ELLIOT JAY RILEY
Hi everyone, I am using GDAL 1.8.1 with Python 3.2 on Windows 7 64-bit (). I am using the code at a

Re: [gdal-dev] gdalnumeric problems with Python 3.2 Windows 7 64 bit

2011-07-11 Thread Isaac Gerg
Thank you! On Mon, Jul 11, 2011 at 4:13 PM, Tamas Szekeres wrote: > Isaac, > > I've took a chance to install the numpy-amd64 packages from the site you > mentioned. If the things are going well the tomorrow builds will contain the > numpy enabled gdal win64 packages. > > I should however mention

Re: [gdal-dev] gdalnumeric problems with Python 3.2 Windows 7 64 bit

2011-07-11 Thread Tamas Szekeres
Isaac, I've took a chance to install the numpy-amd64 packages from the site you mentioned. If the things are going well the tomorrow builds will contain the numpy enabled gdal win64 packages. I should however mention that I have some negative experiences with the numpy enabled GDAL (WIN64) packag

Re: [gdal-dev] FileGDB OGR driver test

2011-07-11 Thread Jeff McKenna
Hello everyone, Today I am also testing the FileGDB support, and I was surprised to find that a wiki page in GDAL's 'buildhints' section had not been created, to record all of this great testing and discussionso others don't need to search the mailing list. I have begun the document here,

Re: [gdal-dev] gdalnumeric problems with Python 3.2 Windows 7 64 bit

2011-07-11 Thread Isaac Gerg
Im not sure I understood your original message. In any case, I have it working now though I used a different GDAL build than the one down by Tamas. I uninstalled Tamas' build (had to delete a few files in the site-packages directory) and then install the GDAL libs from here: http://www.lfd.uci.e

Re: [gdal-dev] gdalnumeric problems with Python 3.2 Windows 7 64 bit

2011-07-11 Thread Even Rouault
Le lundi 11 juillet 2011 20:40:56, Isaac Gerg a écrit : > Hmmm.. I just downloaded numpy from here: > http://www.lfd.uci.edu/~gohlke/pythonlibs/ the 64bit windows one without > MKL. > > I installed it successfully and then reran the code. Same error. Any > ideas? Yes, as I said in my previous a

Re: [gdal-dev] gdalnumeric problems with Python 3.2 Windows 7 64 bit

2011-07-11 Thread Isaac Gerg
Hmmm.. I just downloaded numpy from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/ the 64bit windows one without MKL. I installed it successfully and then reran the code. Same error. Any ideas? Isaac On Mon, Jul 11, 2011 at 2:36 PM, Even Rouault wrote: > Le lundi 11 juillet 2011 20:27:12, I

Re: [gdal-dev] gdalnumeric problems with Python 3.2 Windows 7 64 bit

2011-07-11 Thread Even Rouault
Le lundi 11 juillet 2011 20:27:12, Isaac Gerg a écrit : > Hi everyone, > I am using GDAL 1.8.1 with Python 3.2 on Windows 7 64-bit ( > http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-x64-gdal > -1-8-mapserver-6-0.zip cdde12e4

[gdal-dev] gdalnumeric problems with Python 3.2 Windows 7 64 bit

2011-07-11 Thread Isaac Gerg
Hi everyone, I am using GDAL 1.8.1 with Python 3.2 on Windows 7 64-bit ( http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-x64-gdal-1-8-mapserver-6-0.zip

Re: [gdal-dev] Re: Change the spatial reference of a shapeile

2011-07-11 Thread Chaitanya kumar CH
Exactly. On Mon, Jul 11, 2011 at 8:31 PM, Solimyr wrote: > Sorry, I do not understand...You mean to write the spatialRef to a txt file > and then doing something like: > > $ ogr2ogr -a_srs spatialRef.txt dst_shape.shp src_shape.shp > > Is this what you mean? Where inside the txt file there is

Re: [gdal-dev] ogr2ogr SQL Date Calculation

2011-07-11 Thread James Hiebert
In PostgreSQL, you should be able to do something like: > SELECT now() - INTERVAL '30 DAYS'; ?column? -- 2011-06-11 08:34:03.32524-07 (1 row) See table 9-26 on this page: http://www.postgresql.org/docs/8.4/static/functions-datetime.html for a w

Re: [gdal-dev] Re: Change the spatial reference of a shapefile

2011-07-11 Thread Jean-Claude Repetto
Le 11/07/2011 12:12, Solimyr a écrit : Thx, I tried to copy the file .prj but didn't work so I moved to use the ogr2ogr method using -a_srs but I'm not able to do that... I get the spatialRef using ogrinfo, like: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",637813.

Re: [gdal-dev] ogr2ogr SQL Date Calculation

2011-07-11 Thread Michael Shishcu
Hi Robert, there is a Date command for windows commandline http://ss64.com/nt/date.html hope this helps regards, michael On Mon, Jul 11, 2011 at 6:11 PM, Langford, Robert < robert.langf...@salford.gov.uk> wrote: > All, > > I am trying to use ogr2ogr as a scheduled command line task to run wee

Re: [gdal-dev] RE: How to get some special metadata of HDF5 Cosmo-Skymed file

2011-07-11 Thread Alex Mantaut
I'm not sure if I understood your problem... You can't find the Calibration Constant? In that case the calibration constant is a property of the Sxx group. Check csk-product handbook page 45 for more information. Hope it helps! Regards 2011/7/11 RSyaoxin : > Thanks Alex Mantaut .This document is

[gdal-dev] ogr2ogr SQL Date Calculation

2011-07-11 Thread Langford, Robert
All, I am trying to use ogr2ogr as a scheduled command line task to run weekly to convert a .SHP file to a .TAB file whilst filtering the data based on a date field. I would like to only convert records that have a date from the last 30 days. Therefore If the task ran today (11/07/2011) the b

[gdal-dev] Re: Change the spatial reference of a shapeile

2011-07-11 Thread Solimyr
Sorry, I do not understand...You mean to write the spatialRef to a txt file and then doing something like: $ ogr2ogr -a_srs spatialRef.txt dst_shape.shp src_shape.shp Is this what you mean? Where inside the txt file there is: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_19

[gdal-dev] RE: How to get some special metadata of HDF5 Cosmo-Skymed file

2011-07-11 Thread RSyaoxin
Thanks Alex Mantaut .This document is what I previously reference.Maybe the problem is that I do not know how to extract "Calibration Constant"or"K" parameters. Kind Regards Date: Mon, 11 Jul 2011 07:36:52 -0700 From: ml-node+6571128-1062291866-335...@n2.nabble.com To: rsyao...@hotmail.co

[gdal-dev] Custom geographic coordinate system and non valid translation

2011-07-11 Thread Rodolfo Bonnin
Hello all, I'm trying to define a UTM projected coordinate system, with a custom geographic coordinate system, to have a system similar to the geocentric ITRF97, in gdal 1.8, which doesn't support that type. Part of the gdalinfo output is:

Re: [gdal-dev] Meaning of nPixelSpace/nLineSpace in IRasterIO

2011-07-11 Thread Jorge Arévalo
Hello, 2011/7/8 Even Rouault : > Le vendredi 08 juillet 2011 16:09:31, Jorge Arévalo a écrit : >> Hello, >> >> I'm not sure of the meaning of nPixelSpace, nLineSpace IRasterIO args. >> >> >From GDAL doc I read: >> nPixelSpace: The byte offset from the start of one pixel value in >> pData to the st

Re: [gdal-dev] RE: How to get some special metadata of HDF5 Cosmo-Skymed file

2011-07-11 Thread Alex Mantaut
To be honest I know nothing about radiation calibration... Did you checked out this document? http://www.e-geos.it/products/pdf/COSMO-SkyMed-Image_Calibration.pdf other relevant information can be found at: http://www.e-geos.it/products/cosmo.html Hope it helps! Regards 2011/7/11 RSyaoxin : >

Re: [gdal-dev] Re: Change the spatial reference of a shapeile

2011-07-11 Thread Chaitanya kumar CH
Solimyr, It's hard to express the SRS WKT on command line. The easiest way is to save the srs wkt into a file and use the filename in place of the srs_def for the -a_srs option in the command. On Mon, Jul 11, 2011 at 3:42 PM, Solimyr wrote: > Thx, I tried to copy the file .prj but didn't work s

[gdal-dev] RE: How to get some special metadata of HDF5 Cosmo-Skymed file

2011-07-11 Thread RSyaoxin
Thanks Antonio Valentino and Alex Mantaut. I've got these parameters.I have a new problem,I need to get the backscatter image,but the calibration result is not correct,the calibrated image pixels are all zero.I doubt that my method is not correct.Who can give me some information about Cosmo-Sky

Re: [gdal-dev] How to get some special metadata of HDF5 Cosmo-Skymed file

2011-07-11 Thread Alex Mantaut
Hi RSyaoxin, Antonio is right, there was an issue on geting the root metadata from hdf5 files and is has been fixed in trunk, you will need to recompile gdal in order to get that information. After you rebuilt the library, an example on getting the metadata: #include "gdal_priv.h" #include #in

[gdal-dev] Re: Change the spatial reference of a shapeile

2011-07-11 Thread Solimyr
Thx, I tried to copy the file .prj but didn't work so I moved to use the ogr2ogr method using -a_srs but I'm not able to do that... I get the spatialRef using ogrinfo, like: GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",637813.0,298.252223563]], PRIMEM["Greenwich",0