Re: [gdal-dev] GDAL_GRID Dateline Issue

2012-12-27 Thread pcreso
> Hi, > > I am trying to use gdal_grid to interpolate some data and I am having > trouble making gdal_grid treat spatial data (WGS84 lat/lon coordinates) as > points on a continuous plane.  It seems to be ignoring the dateline so for > example values at 45, 179 are not properly interacting with

Re: [gdal-dev] [Qgis-developer] EPSG 8.0 Upgrade

2012-12-11 Thread pcreso
On a sort of related topic, (another NZ projection :-) EPSG:3994 supercedes EPSG:3752, as EPSG got the initial specification wrong. This is a projection used for the wider region around NZ, rather than the NZ mainland, and this projection is used primarily in ESRI to avoid 180 meridian issues.

Re: [gdal-dev] EPSG 8.0 Upgrade

2012-12-09 Thread pcreso
Extending this slightly - so it can more easily be discovered by less technically capable users, & in binary distributions of GDAL. Is it possible to have a command line parameter for GDAL/Proj (etc) that tells the user what EPSG version is installed? Perhaps include this information in the -ve

Re: [gdal-dev] 64bit integers

2012-11-28 Thread pcreso
Hi Jeremy, Outside of a GDAL solution, what format is the underlying data stored in? I have resolved issues like this with Postgis data stores by doing the int64 to string conversion in the query generating the data for the service, or via views on the source tables. Not the most elegant approach

Re: [gdal-dev] Possible new GDAL driver (funded work) for mapserver access?

2012-10-31 Thread pcreso
Hi Peter, I've looked at radaman, it is very much in a similar direction, but adds another tool to the mix, which I'm seeking to avoid if possible. We work with small Pacific Is nations, often with very little technical expertise, using TIDEDA, & if a GDAL/mapserver combination is feasible, it

[gdal-dev] Possible new GDAL driver (funded work) for mapserver access?

2012-10-31 Thread pcreso
Hi, I'm exploring the possibility of a GDAL driver for TIDEDA datasets. For a description of TIDEDA, see: http://www.niwa.co.nz/software/tideda-time-dependent-data Briefly, it is a tool for managing timeseries data from sources like climate & hydrometric stations. NIWA is considering Open Sour

Re: [gdal-dev] how to convert shapefile to netcdf?

2012-05-28 Thread pcreso
I guess somewhat off topic for a devel list but my 02c I'd use ogr2ogr to convert the shapefile to a GMT (Generic Mapping Tools) format vector file & use GMT to create the (COARDS compliant) netCDF grid file from the vector data. GMT has several approaches possible, including triangulation,

Re: [gdal-dev] PostgreSQL driver for GDAL1.8.1

2012-05-12 Thread pcreso
Ensure you have appropriately modified postgreql.conf & pg_hba.conf to allow the appropriate external access to the required database, for the required user, from the client IP (CIDR) address. If this is not enabled, such external connections cannot happen. Brent Wood --- On Sat, 5/12/12, Siju

Re: [gdal-dev] Simplify a polygon topology doesn't preserve the topology

2012-02-20 Thread pcreso
Does Postgis ST_SimplifyPreserveTopology() work for you? http://postgis.org/docs/ST_SimplifyPreserveTopology.html Cheers,   Brent Wood --- On Tue, 2/21/12, Arnd Wippermann wrote: From: Arnd Wippermann Subject: [gdal-dev] Simplify a polygon topology doesn't preserve the topology To: gdal-de

RE: [gdal-dev] PostGIS SRID conundrum

2012-02-11 Thread pcreso
Hi Martin, I can't see why that won't work, but it does have one issue, and that is that if there is already a match, but the parameters are in a different order, you won't find it, &  then you are effectively creating a nonstandard SRID which duplicates a standard & supported projection. Wh

Re: [gdal-dev] PostGIS SRID conundrum

2012-02-10 Thread pcreso
ESRI does not use a SRID, it uses a text string that needs complex parsing to work. If ESRI supported EPSG codes it would be easier... The spatial_ref_sys table contains entries for all EPSG recognised projections. If you have a reasonable case to have a projection inluded by EPSG, submit a req

Re: [gdal-dev] What are the arguments to gdalwarp to cross the date line?

2011-08-31 Thread pcreso
Hi Jim, proj.4 (cs2cs) has a parameter to force lat long coords into a +-180 or 0-360 space by specifying the output central meridian. >From the proj.4 changelog: 2006-10-12  Frank Warmerdam      * Added experimental +lon_wrap argument to set a "center point" for     longitude wrapping of lon

[gdal-dev] Re: [mapserver-users] OGR VRT ODBC connection problem

2011-02-20 Thread pcreso
Thanks Stephen, I should have included this in my first msg, apologies, but thanks for the reply. I'm running GDAL v1.6.1, from ogrinfo --version GDAL 1.6.1, released 2009/05/11   And, running isql (from unixodbc) also works. isql --help unixODBC 2.2.12 isql -v metp niwatest niwatest libnuma

[gdal-dev] OGR VRT ODBC connection problem

2011-02-20 Thread pcreso
Hi, Apologies for the cross posting, but I figure there are experts on both lists. I'm trying to get a ogr virtual connection working from a Linux host to a remote Oracle DB to use mapserver for a WFS service providing the required data.. ODBC is working, eg: sqlplus user/user@metp select co

Re: [gdal-dev] Data types change converting from MID/MIF to SHP

2010-11-24 Thread pcreso
Hi, I'm guessing this is because the DBF format ESRI decided on for aspatial attribute data in shapefiles does not have an integer datatype (sse: http://www.dbase.com/knowledgebase/int/db7_file_fmt.htm) So an int field gets read into a generic numeric field in the DBF file, rather than an int

Re: [gdal-dev] OGR2OGR S57

2010-10-22 Thread pcreso
Hi Tim, S57 is a pretty complex format, so I suggest you look at an intermediate format that is supported by some sort of data management capability so you can work with it & select what is to converted to kml. Postgis is the obvious one, or you could use shapefiles with ogr & something like Q

Re: [gdal-dev] What do people think of the MySQL Spatial Extensions?

2010-05-27 Thread pcreso
Russell McOrmond wrote: > I am aware of PostGIS, Oracle Spatial and ArcSDE. I only became aware > that MySQL had extensions as well very recently (My > brother started at Pythian). > > > http://dev.mysql.com/doc/refman/5.5/en/mysql-gis-conformance-and-compatibility.html > http://www.gdal.org/o

[gdal-dev] Raster data extraction

2010-04-19 Thread pcreso
Hi, Is there a simple way (using gdal) of retrieving the colour spectra at specified sample points in georeferenced images? I figure GRASS has some tools to do this, as does GMT, but was wondering if GDAL could support this functionality directly. Lots of points/images to work through. Thanks

Re: [gdal-dev] faster way to display shapeFile

2010-03-05 Thread pcreso
Hi Pawell, A shapefile is not usually spatially indexed, and ogr cannot use the ESRI index anyway, so the entire dataset is read every time to plot it. For a large shapefile this is considerable overhead, especially when you are zoomed in & only want to render a small region. See the info her

Re: [gdal-dev] Warp a file from two separate Lat and Long

2010-02-18 Thread pcreso
assuming you are using Linux Can you use paste to merge the files first, redirected into a new file of x y z columns, then use GDAL on the result (assuming the order of values is the same in all 3 files) eg: echo 1 > f1 echo 2 > f2 echo 3 > f3 paste f1 f2 f3 1 2 3 Brent Wood

Re: [Gdal-dev] gdal build failure on SUSE LINUX Enterprise Server 10

2009-12-10 Thread pcreso
Hi Alan, This doesn't fix you problem specifically, but may help. We usually use the packages from the OpenSuse Geo repository, which has SLES specific builds available. (We are using SLES for most Linux servers in our organisation) See: http://download.opensuse.org/repositories/Application:

Re: [gdal-dev] Fastest vector format for combining shapefiles

2009-10-16 Thread pcreso
I guess another possibility would be to approach contacts in the OGC, whose business is essentially all about open standards in the wider GIS arena. Members of OGC who have links to FOSS/OSGEO that I'm aware of include Autodesk, Lisasoft & TOPP, & some national bodies such as LINZ. Brent Wood

Re: [gdal-dev] acronym for OGR

2009-05-07 Thread pcreso
I'm not sure if anyone knows, the last time I saw this discussed there was no clear answer. This doesn't help muc... http://www.acronymattic.com/OGR.html At a guess it was something like Open Geometry Reformatter, which makes about as much sense as anything :-) If anyone does know, could this

Re: [gdal-dev] Is it possible to Buffer using ogr2ogr?

2009-04-22 Thread pcreso
Yep. In your ogr2ogr query string query try "select buffer(area, nn.nn) as geom from table where...;" PostGIS will buffer it before sending it to GDAL for export to shapefile. Or if you are repeatedly doing this, create a view in PostGIS with the buffer, & select this with GDAL, whichever sui

RE: [gdal-dev] need suggestion on Linux OS

2009-04-22 Thread pcreso
Hi. I suggest you look at OpenSuse. That's my preferred FOSS GIS platform for a few years now. The guys that maintain the OpenSUuse GIS repository are really efficient & helpful. The couple of times I've wanted an updated package there I've emailed them & it's been done in a couple of days.

Re: [gdal-dev] ogr2ogr problem

2009-01-06 Thread pcreso
Hi Frank, My current workaround is to use the GML driver instead of Mapinfo (don't extract the geometries as geometries), then grep/sed/tr the GML file to get a GMT one. This does not actually use ogr2ogr to get the geometries, but returns them as a field with the X & Y coords in a space separa

[gdal-dev] ogr2ogr problem

2009-01-06 Thread pcreso
Hi, My apologies for introducing problems from an old version, but it is what is installed & I can't have it changed for weeks at least The problem is with ogr2ogr in version 1.3.1 of GDAL under FreeBSD. I need to generate GMT files for an online mapping application generating publication