Re: [gdal-dev] copy raster data in between file formats - Java

2012-06-13 Thread Florent JITIAUX
Hi all, process with a large amount of data like images is always a problem in Java. But you don't need to use JAI. You can process with any image by divide it in smaller rasters. That's why you have xoff and yoff arguments in ReadRaster and WriteRaster Method. You fix width and height of the

Re: [gdal-dev] copy raster data in between file formats - Java

2012-06-13 Thread Imran Rajjad
Hi Florent, I get your point , but the thing is how does one copy raster across datasets when the required size value is more than Integer`s maximum value, It would make sense to fill memory raster data store with 1Gb of data and dump it in the destination data store, but things break down where

Re: [gdal-dev] copy raster data in between file formats - Java

2012-06-13 Thread Florent JITIAUX
2012/6/13 Imran Rajjad raj...@gmail.com Hi Florent, I get your point , but the thing is how does one copy raster across datasets when the required size value is more than Integer`s maximum value, It would make sense to fill memory raster data store with 1Gb of data and dump it in the

[gdal-dev] Ogr2ogr from Spatialite into PostGIS stops to non-ASCII character

2012-06-13 Thread Jukka Rahkonen
Hi, How could I prevent the following problem: ERROR 1: INSERT command for new feature failed. ERROR: invalid byte sequence for encoding UTF8: 0xc56b Command: INSERT INTO test_table (wkb_geometry , address, osoite) VALUES ('010120FB0BAB1109023B190841634688040C595941' ::GEOMETRY, 'Jurmo

Re: [gdal-dev] Ogr2ogr from Spatialite into PostGIS stops to non-ASCII character

2012-06-13 Thread Jeff McKenna
On 12-06-13 8:58 AM, Jukka Rahkonen wrote: Hi, How could I prevent the following problem: ERROR 1: INSERT command for new feature failed. ERROR: invalid byte sequence for encoding UTF8: 0xc56b Command: INSERT INTO test_table (wkb_geometry , address, osoite) VALUES

Re: [gdal-dev] Ogr2ogr from Spatialite into PostGIS stops to non-ASCII character

2012-06-13 Thread Jukka Rahkonen
Jeff McKenna jmckenna at gatewaygeomatics.com writes: Hmm I have had to use the magical -W switch before with shp2pgsql to specify encoding; I wonder if with ogr2ogr you should pass a -sql switch with something like SET CLIENT_ENCODING to UTF8 ? But I haven't tested that. It reads

Re: [gdal-dev] Ogr2ogr from Spatialite into PostGIS stops to non-ASCII character

2012-06-13 Thread Jeff McKenna
On 12-06-13 9:57 AM, Jukka Rahkonen wrote: It reads actually in the documentation http://gdal.org/ogr/drv_pg.html Giving SET PGCLIENTENCODING=LATIN1 before running ogr2ogr helped. I had tried first something that I read from the internet by giving --config PGCLIENTENCODING LATIN1 but it did

Re: [gdal-dev] Ogr2ogr from Spatialite into PostGIS stops to non-ASCII character

2012-06-13 Thread Jukka Rahkonen
Jukka Rahkonen jukka.rahkonen at mmmtike.fi writes: Jeff McKenna jmckenna at gatewaygeomatics.com writes: Hmm I have had to use the magical -W switch before with shp2pgsql to specify encoding; I wonder if with ogr2ogr you should pass a -sql switch with something like SET

Re: [gdal-dev] Ogr2ogr from Spatialite into PostGIS stops to non-ASCII character

2012-06-13 Thread Jeff McKenna
On 12-06-13 10:46 AM, Jukka Rahkonen wrote: Next trouble: I would now take the data back from PostGIS into Spatialite (it was much faster to do some processing with PostGIS) but the happens again: my non-ascii characters are converted to something invalid. I cannot see any

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-13 Thread Rutger
David Hoese wrote Thanks for the reply. I tried the s_srs tag and it still didn't help. I also tried using the -geoloc flag which I had tried earlier too and still get the 441 out of 441 failed to transform error. I have tried PyTroll, but there KDTree algorithm seems to be too slow

Re: [gdal-dev] to find area of shapeFile

2012-06-13 Thread Eli Adam
I'm just guessing here since not much of an email or question made it through. You can look at this, http://gdal.org/ogr/ogr_sql.html, specifically OGR_GEOM_AREA HTH, Eli On Tue, Jun 12, 2012 at 4:21 AM, SIVA RAMA KRISHNA s.r.kriis...@gmail.com wrote:

Re: [gdal-dev] Ogr2ogr from Spatialite into PostGIS stops to non-ASCII character

2012-06-13 Thread Free
Le mercredi 13 juin 2012 12:57:11 Jukka Rahkonen a écrit : Jeff McKenna jmckenna at gatewaygeomatics.com writes: Hmm I have had to use the magical -W switch before with shp2pgsql to specify encoding; I wonder if with ogr2ogr you should pass a -sql switch with something like SET

[gdal-dev] translate ecw to geotiff + tfw

2012-06-13 Thread Steve G
I am attempting to use the translate function to convert from ecw to geotiff and the creation of an associated tfw file. The geotiff is created, but it fails to create the tfw file. I've tried many times, but always fails. My syntax is as follows: gdal_translate -a_srs EPSG:2227 -co tfw=yes

Re: [gdal-dev] translate ecw to geotiff + tfw

2012-06-13 Thread Steve G
Thanks for your suggestion. It got me thinking about the projection and other geo information stored in the header data within the ECW file. I previously had trouble with various GIS/mapping applications being able to display ECW files properly (projection, extent, etc) and applications like

[gdal-dev] GDAL spatial reference issue

2012-06-13 Thread Murali Krishna
I'm facing an issue in creating ESRI shape files using GDAL library. I want to create a layer with SpatialReference information set on it and until now i'm creating SpatialReference by importing WellKnownText (wkt) representation. Is there any way we can create the same SpatialReference from

Re: [gdal-dev] translate ecw to geotiff + tfw

2012-06-13 Thread Even Rouault
Le mercredi 13 juin 2012 23:03:12, Steve G a écrit : Thanks for your suggestion. It got me thinking about the projection and other geo information stored in the header data within the ECW file. I previously had trouble with various GIS/mapping applications being able to display ECW files

Re: [gdal-dev] GDAL spatial reference issue

2012-06-13 Thread Frank Warmerdam
On Wed, Jun 13, 2012 at 2:19 PM, Murali Krishna muralikrishn...@gmail.com wrote: I'm facing an issue in creating ESRI shape files using GDAL library. I want to create a layer with SpatialReference information set on it and until now i'm creating SpatialReference by importing WellKnownText

Re: [gdal-dev] translate ecw to geotiff + tfw

2012-06-13 Thread Steve G
OK...I guess for my purposes I am only interested in the consequence. I have a relatively easy conversion process, so it is easy enough for me to copy the ecw's into an empty directory and translate from there. If your correct about the ordering in which the ecw driver reads and validates the

Re: [gdal-dev] GDAL spatial reference issue

2012-06-13 Thread Murali Krishna
Frank, I don't have access to ESRI WKT. I was given the following SpatialReference information by ArcGIS Feature Server when i query for a layer schema: spatialReference : { wkid : 102100, latestWkid : 3857 } So from the above wkid i need to create a shape file. Is there any way

Re: [gdal-dev] GDAL spatial reference issue

2012-06-13 Thread Etienne Tourigny
A few ESRI ids correspond to ESRI authid codes - but not all so it's not fool-proof... Assuming the esri code DOES correspond to EPSG code, you would basically use OSRImportFromEPSG( latestWkid) In your example, thelatestWkid : 3857 corresponds to EPSG:3857 which is the WGS 84 /

Re: [gdal-dev] reproject python numpy binary swath/lat/lon

2012-06-13 Thread David Hoese
On 6/13/12 10:00 AM, gdal-dev-requ...@lists.osgeo.org wrote David Hoese wrote I'm attempting to project satellite data to an AWIPS grid. Assuming I have the grid defined correctly with proj4 parameters, I've been using +proj=latlong +datum=wgs84 as my s_srs parameters. Does that