Re: [gdal-dev] Why have I got SRS 900914 in my PostGIS table after ogr2ogr alimentation ?

2012-10-25 Thread SAEZ Laurent - SG/SPSSI/CPII/DOM/ETER/PNE IG
Thanks Even for your new answer. I have found my mistake. I haven't deleted the 900914 entry in my spatial_ref_sys table. So, when I request auth_srid = 4467, it returns 2 entries : 900914 and 4467. When I delete 900914 entry every thing works fine. Thanks a lot Laurent Le 24/10/2012

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

2012-10-25 Thread Ernest Menville
But is it not the main purpose of gdaltransform to transform a lot of points into another coordinate system? How can I do that, if it is not possible to save the output coordinates into a text file? (...without copypaste in the command line, what is just feasible for a small number of points)

Re: [gdal-dev] Question about using crop_to_cutline

2012-10-25 Thread Luis Lisboa
Hi I have exacly the same problem. It is resampling to the extent of the polygon instead of croping just the pixels inside the polygon and using the pixel frame of the original image. How can this be fixed? Regards Luis Lisboa - ORIGINAL MESSAGE--

[gdal-dev] ordering of layers

2012-10-25 Thread Nikhil Sai Parupalli
Hi , I am trying to load a S57 dataset to my map control using GDAL. I have diff types of layers i.e Polygon, Point, Line and multipoint Here I want to show polygon in the base and points and lines on top of it my code is as follows if (layerType == POLYGON) {

[gdal-dev] GDAL: RasterizeLayer in C#

2012-10-25 Thread CABO
Hi all, I am trying to use the OSGeo.GDAL.Gdal.RasterizeLayer() from GDAL 1.9.2 and it seems to require some SWIGTYPE parameters, which I don't know what to do with: OSGeo.GDAL.Gdal.RasterizeLayer( OSGeo.GDAL.Dataset dataset, int bands, OSGeo.GDAL.SWIGTYPE_p_int band_list,

[gdal-dev] Removing Nodata pixels from raster

2012-10-25 Thread katrin eggert
Greetings I have a Geotif with only one Layer with a size of 6000x5000 but from which I only have a square of 60x100 with bvalid pixels. the remaining are NOdata. The problem is that this Geotiff is a big file 90MB and without these NoData values I would have a much smaller raster. How can I

Re: [gdal-dev] Question about using crop_to_cutline

2012-10-25 Thread Joaquim Luis
I have a close functionality in Mirone but it was developed mainly for grids, though it works also with images. With a grid/image loaded, load the polygon too. Next right-click on the polygon line and select ROI Crop Tools - Crop Image (or any of the other related options) and it's

Re: [gdal-dev] Question about using crop_to_cutline

2012-10-25 Thread António Rocha
Hi Sorry Joaquim but I'm really trying to find a solution based on GDAL. Thanks Antonio I have a close functionality in Mirone but it was developed mainly for grids, though it works also with images. With a grid/image loaded, load the polygon too. Next right-click on the polygon line and

Re: [gdal-dev] Removing Nodata pixels from raster

2012-10-25 Thread katrin eggert
Hello No I don't know where my valid pixels are. Any alternative? 2012/10/25 Kyle Shannon k...@pobox.com Katrin, Do you know where you valid pixels are in the image? If so, gdal_translate with -srcwin would work: kyle@ubuntu:~$ gdal_translate -srcwin xoff yoff 60 100 in.tif out.tif where

Re: [gdal-dev] Removing Nodata pixels from raster

2012-10-25 Thread Kyle Shannon
Katrin, Do you know where you valid pixels are in the image? If so, gdal_translate with -srcwin would work: kyle@ubuntu:~$ gdal_translate -srcwin xoff yoff 60 100 in.tif out.tif where xoff, yoff are the number of pixels from the image origin that your valid region begins(pixels, lines). See

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

2012-10-25 Thread Even Rouault
Le jeudi 25 octobre 2012 09:33:38, Ernest Menville a écrit : But is it not the main purpose of gdaltransform to transform a lot of points into another coordinate system? How can I do that, if it is not possible to save the output coordinates into a text file? (...without copypaste in the

Re: [gdal-dev] Question about using crop_to_cutline

2012-10-25 Thread Even Rouault
Le mercredi 24 octobre 2012 17:19:45, António Rocha a écrit : Greetings I have a raster image and a shapefile polygon and I wanted to crop the raster for just to have valid pixels inside the polygon. I have used crop_to_cutline but here is a problem: It produces a raster map but pixels does

[gdal-dev] Created a rotated (non-north) geotiff

2012-10-25 Thread Isaac Gerg
Hi All, I have a raster image of 2200x1000 pixels. I know three bits of information about the geoposition of the raster: 1. The upper left hand corner's lat and long of the image. 2. The pixel size in meters. The pixels are square 3. The rotation of the image relative to the upper left hand