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
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
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
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
>
>
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
31 matches
Mail list logo