Re: [gdal-dev] Unwanted partial transparency when clipping

2011-07-08 Thread Marius Jigmond
I use QGIS which knows how to interpret the bands. I have no idea how Photoshop handles the alpha band. You can try specifying -dstnodata: gdalwarp -crop_to_cutline -cutline mask.shp -dstnodata "0 0 0" source.tif dest.tif this should output a RGBA tif with NoData=0 (black) and maybe Photoshop can i

Re: [gdal-dev] Unwanted partial transparency when clipping

2011-07-08 Thread Marius Jigmond
1.8 compiled from source -marius On Fri, 2011-07-08 at 18:02 -0700, Michael Corey wrote: > That certainly could be. I'm running GDAL 1.8 from the kyngchaos site. > Which version are you running? > > Thanks, > > Michael Corey > > > On 7/8/11 5:56 PM, Marius Jigmond wrote: > > > > > > > On

Re: [gdal-dev] Unwanted partial transparency when clipping

2011-07-08 Thread Michael Corey
That certainly could be. I'm running GDAL 1.8 from the kyngchaos site. Which version are you running? Thanks, Michael Corey On 7/8/11 5:56 PM, Marius Jigmond wrote: On Fri, 2011-07-08 at 08:14 -0700, Michael Corey wrote: OK, I did a little more work on this, and I've narrowed down what's

Re: [gdal-dev] Unwanted partial transparency when clipping

2011-07-08 Thread Marius Jigmond
On Fri, 2011-07-08 at 08:14 -0700, Michael Corey wrote: > OK, I did a little more work on this, and I've narrowed down what's > going on, but I could still use some help in figuring out how to solve it. > > Here's my original image: > > http://mikejcorey.com/spatial/diablo-orig-5pct.tif > >

RE: [gdal-dev] Adding a subdataset to a NITF

2011-07-08 Thread Cole, Derek
Perfect. I guess I missed this, digging around in the API instead of the format specification! Thanks! -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Friday, July 08, 2011 3:47 PM To: gdal-dev@lists.osgeo.org Cc: Cole, Derek Subject: Re: [gdal-dev] Ad

Re: [gdal-dev] GDAL for Python 3.2 on Windows 64bit

2011-07-08 Thread Even Rouault
Le vendredi 08 juillet 2011 21:55:12, Isaac Gerg a écrit : > Hi Everyone, > > I am wondering if there is a build (beta or release) of GDAL for Python 3.2 > on the Windows 64bit platform. I have been browsing around the ticket area > of the website and there appears to have been code entered in to

[gdal-dev] GDAL for Python 3.2 on Windows 64bit

2011-07-08 Thread Isaac Gerg
Hi Everyone, I am wondering if there is a build (beta or release) of GDAL for Python 3.2 on the Windows 64bit platform. I have been browsing around the ticket area of the website and there appears to have been code entered in to make GDAL compatible with python 3.2. However, I cannot find where

Re: [gdal-dev] Adding a subdataset to a NITF

2011-07-08 Thread Even Rouault
Le vendredi 08 juillet 2011 21:41:43, Cole, Derek a écrit : > Hello list, > > I have been reading through the documentation to see if it is possible to > add a subdataset to a format that supports it (NITF). It seems like based > on the data model it is possible to read those by extracting the nam

[gdal-dev] Adding a subdataset to a NITF

2011-07-08 Thread Cole, Derek
Hello list, I have been reading through the documentation to see if it is possible to add a subdataset to a format that supports it (NITF). It seems like based on the data model it is possible to read those by extracting the name and then reading it as normal as if that was the file name. Is th

Re: [gdal-dev] Fwd: Re: [Live-demo] Re: Liberal licensing of Project Overviews in LiveDVD, do we want this?

2011-07-08 Thread Even Rouault
Le vendredi 08 juillet 2011 16:35:52, Frank Warmerdam a écrit : > On Fri, Jul 8, 2011 at 1:34 AM, Ari Jolma wrote: > > Would it be enough to add something to the Doxyfile tag HTML_FOOTER, > > which states what the documentation is? That way it gets to the bottom > > of every page of gdal.org. The

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

2011-07-08 Thread 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 start of the next pixel value within a sc

[gdal-dev] Re: GDAL Newbie - Get Height from a DTED

2011-07-08 Thread migelanjel
It worked! Thanks a lot for your help Chaitanya. Seriously, thanks a lot. -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/GDAL-Newbie-Get-Height-from-a-DTED-tp6562549p6562986.html Sent from the GDAL - Dev mailing list archive at Nabble.com.

Re: [gdal-dev] Unwanted partial transparency when clipping

2011-07-08 Thread Michael Corey
OK, I did a little more work on this, and I've narrowed down what's going on, but I could still use some help in figuring out how to solve it. Here's my original image: http://mikejcorey.com/spatial/diablo-orig-5pct.tif The original appears to have an RGBA setup (RGB channels and an alpha cha

Re: [gdal-dev] Fwd: Re: [Live-demo] Re: Liberal licensing of Project Overviews in LiveDVD, do we want this?

2011-07-08 Thread Frank Warmerdam
On Fri, Jul 8, 2011 at 1:34 AM, Ari Jolma wrote: > Would it be enough to add something to the Doxyfile tag HTML_FOOTER, which > states what the documentation is? That way it gets to the bottom of every > page of gdal.org. The footer can't be the whole licence, though. MIT licence > does not seem t

Re: [gdal-dev] export 3D shapefile to 2D (-lco dim=2 not is not used by the shp driver)

2011-07-08 Thread G. Allegri
Great! thanks Chaitanya, -nlt POLYGON did the work ;) giovanni 2011/7/8 Chaitanya kumar CH > Giovanni, > > If your shapefile contains only one type of geometry, you can use the -nlt > option in ogr2ogr. Using a geometry type without the '25D' postfix should > remove the Z values. > > On Fri, Ju

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

2011-07-08 Thread Jorge Arévalo
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 start of the next pixel value within a scanline. If defaulted (0) the size of the datatype eBufType is used. nLineSp

Re: [gdal-dev] GDAL Newbie - Get Height from a DTED

2011-07-08 Thread Chaitanya kumar CH
Migel, You have the corner coordinates. Now you need to know the pixel value at a particular position. You can calculate the pixel value from the projection coordinates using the affine transformation coordinates. You can get the these coordinates using GDALDataset::GetGeoTransform() method. Knowi

Re: [gdal-dev] export 3D shapefile to 2D (-lco dim=2 not is not used by the shp driver)

2011-07-08 Thread Chaitanya kumar CH
Giovanni, If your shapefile contains only one type of geometry, you can use the -nlt option in ogr2ogr. Using a geometry type without the '25D' postfix should remove the Z values. On Fri, Jul 8, 2011 at 6:19 PM, G. Allegri wrote: > Looking at the shp driver I see that the -lco dim option is not

[gdal-dev] GDAL Newbie - Get Height from a DTED

2011-07-08 Thread migelanjel
Hello there! First let me you that i'm quite new in this, so if there's anything that you may is basic, please let me know anyway, cause to me it may be the puzzle piece i'm missing. So, here's what i need to do. I have a DTED file (dt2), and i'm trying to get the elevation data to map it over a j

[gdal-dev] export 3D shapefile to 2D (-lco dim=2 not is not used by the shp driver)

2011-07-08 Thread G. Allegri
Looking at the shp driver I see that the -lco dim option is not used. Is there another way to tranform a 3D polygon to 2D thorugh ogr2ogr? thanks, giovanni ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-de

Re: [gdal-dev] to create a rectangle polygon

2011-07-08 Thread Chaitanya kumar CH
Ahmet, You can clip a shapefile using ogr2ogr using the option -spat [1]. There are more options to control the clipping of polygons intersecting the border. [1]: http://www.gdal.org/ogr2ogr.html 2011/7/8 ahmet temiz > hello > > Is it possible to create a rectangle polygon shp file from known

[gdal-dev] Re: gdal compile question

2011-07-08 Thread George C
ahhh ok, so "ar" is a valid command, a command that's probably not on my path.  I'll have to check that out. Thanks, George From: Frank Warmerdam To: George C Sent: Fri, July 8, 2011 1:17:56 AM Subject: Re: gdal compile question On Thu, Jul 7, 2011 at 3:47

Re: [gdal-dev] RPC and DEM = Too many points (441 out of 441) failed to transform

2011-07-08 Thread Goo Creations
Hi, I've tried that, but without any success. I have no problem warping the image, that works fine. The problem comes in when I try to warp with the DEM. Chris On Fri, Jul 8, 2011 at 1:12 PM, Chaitanya kumar CH wrote: > Chris, > > This could happen when you try to transform an image that is o

[gdal-dev] to create a rectangle polygon

2011-07-08 Thread ahmet temiz
hello Is it possible to create a rectangle polygon shp file from known minx, miny, maxx, maxy values using ogr2ogr ? regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Planlama ve Zarar Azaltma Dairesi Başkanlığı Bilgi ve CBS grubu Eskişehir Yolu 10. km. Lodumlu / Ankara

Re: [gdal-dev] RPC and DEM = Too many points (441 out of 441) failed to transform

2011-07-08 Thread Chaitanya kumar CH
Chris, This could happen when you try to transform an image that is outside the defined area of the destination projection. Cut the raster to the destination projection's extents and try again. There is a thread with exactly the same error message in the archives[1]. I am not sure that it can hel

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

2011-07-08 Thread Chaitanya kumar CH
Solimyr, For shapefiles just copying and renaming the .prj file might be enough. Extents can be computed and stored using the ogr2ogr utility. If copying the .prj file didn't work, you can use the -s_srs option in the ogr2ogr utility. You can get the SRS WKT from the ogrinfo output. Of course, y

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

2011-07-08 Thread Solimyr
Hi guys, I have two shapefile with same features but one miss the extent and the projection. What I want to do is copy the extent and the projection from the first and set to the second. I did something similar with two images using these step: inputimg = gdal.Open(str(fileName), GA_ReadOnly) gd

Re: [gdal-dev] Fwd: Re: [Live-demo] Re: Liberal licensing of Project Overviews in LiveDVD, do we want this?

2011-07-08 Thread Ari Jolma
On 07/08/2011 07:55 AM, Even Rouault wrote: Hi, below Simon's answer to my answers to his post on the live-demo list : http://lists.osgeo.org/pipermail/live-demo/2011-July/003653.html Do you have opinions on how we should handle the licence of documentation on gdal.org ? Would it be enough to

[gdal-dev] installing gdal for iOS development

2011-07-08 Thread Paul Lohr
I have the build_for_iphoneos.sh script from pseudogreen.com along with gdal-1.8.0. I am trying to get GDAL installed so I can start learning how to use it with iOS devices (iPhone, iPad). Xcode is version 3.2.5 and the iOS SDK is version 4.2. I have Xcode 4.2 and iOS 5.0 installed but they a

[gdal-dev] RPC and DEM = Too many points (441 out of 441) failed to transform

2011-07-08 Thread Goo Creations
Hi, I've seen that there are quite a lot of messages on this problem, but none of them helped. When running the following command: gdalwarp -rpc raw.tif out.tif with a raw.tif and raw.rpb file, the image "orthorectifies" correctly. The moment I run: gdalwarp -rpc -to RPC_DEM

Re: [gdal-dev] SetAttributeFilter has no effect ?

2011-07-08 Thread Even Rouault
Selon ahmet temiz : GetFeature(n) returns the feature such as feature.GetFID() == n, so attribute or spatial filter are not taken into account. If you want to iterate over the feature of the layers, and take into account filters, you have to use GetNextFeature(), until it returns null. > hello >