Re: [gdal-dev] GeoRaster: problem updating on predefined existing table

2010-07-12 Thread Ivan Lucena
I just noticed from your ticket [http://trac.osgeo.org/gdal/ticket/3681] that you are using GDAL 1.6.3. Right? A lot has changed since then. I run the same sequence of options as you and everything works fine in GDAL 1.8dev. I believe it should work fine with the current released version too.

Re: [gdal-dev] ogr2ogr problem converting UK Ordnance Survey MasterMap

2010-07-12 Thread Even Rouault
Jez, if you checkout latest GDAL trunk, you'll find a new -splitlistfields option for ogr2ogr that will split fields of type IntegerList, RealList or StringList into as many subfields of single type as necessary. You can also specify -maxsubfields an_integer_value to limit the number of subfiel

Re: [gdal-dev] ogr2ogr problem converting UK Ordnance Survey MasterMap

2010-07-12 Thread Even Rouault
Jez, Yes this is a limitation of the shapefile format (and most drivers, PostgreSQL databases being one of the exceptions). Try adding -fieldTypeToString IntegerList,RealList,StringList to your ogr2ogr command line. This will transform any field of those types into a String field by concatenat

RE: [gdal-dev] ogr2ogr problem converting UK Ordnance Survey MasterMap

2010-07-12 Thread Jez Walters
Even, I've just rebuilt GDAL/OGR using the latest code from the GDAL 'trunk', but now I get the following error using ogr2ogr to convert an OS MasterMap chunk (e.g. http://www.ordnancesurvey.co.uk/oswebsite/products/innovations/sampledata/OSMasterMap_Topo/58116-SX9192-2c1.gz) into ESRI shapefi

Re: [gdal-dev] GeoRaster: problem updating on predefined existing table

2010-07-12 Thread Pasta Bolognese
doing more experiments it results that the error is given ONLY when the schema is given. gdal_translate -of georaster c:\tmp\map.png ^ georaster:geoserver/geoserver,MFDEVDB,GEOSERVER.PASTA _RASTERS,raster ^ -co "INSERT=VALUES(SDO_GEOR.INIT('pasta_rdt_01'))" It is usi

Re: [gdal-dev] GeoRaster: problem updating on predefined existing table

2010-07-12 Thread Pasta Bolognese
> > > >  C:\>gdal_translate -of georaster  c:\tmp\map.png > >  georaster:geoserver/geoserver,MFDEVDB > > > >  and it works well. Then I've imported another immage using the same > >  command and it worked well too ! > > Note that you didn't specify table & column so a table named "GDAL_IMPORT", >

Re: [gdal-dev] OGR Driver for Norwegian SOSI standard

2010-07-12 Thread Frank Warmerdam
relet wrote: Dear all, During the last month, we have developed an OGR driver for the Norwegian SOSI standard[1]. It has reached a state[2] where it can be used to read and use the basic features from SOSI files in OGR-enabled application like mapserver. The standard itself is the national stand

[gdal-dev] Linestring that are within Polygon

2010-07-12 Thread ahmet temiz
hello have two "shp" files. One is in linestring geometry, the other is in polygon. I want to create a new shp file as in linestring that are within polygon. how can I do that with ogr2ogr ? regards ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] how to read the color value of particular pixel

2010-07-12 Thread Chaitanya kumar CH
Vajram, You should check if the object ct, is null after band.GetRasterColorTable(). Perhaps there is no color table for D:\pr.IMG On Mon, Jul 12, 2010 at 5:37 PM, mail2vajram wrote: > > i want to know how to read the color value of particular pixel. and > previously i used the following code t

Re: [gdal-dev] ogr2ogr problem converting UK Ordnance Survey MasterMap

2010-07-12 Thread Chaitanya kumar CH
The command works for me! On Mon, Jul 12, 2010 at 4:57 PM, Jez Walters wrote: > Chaitanya, > > > > > > That was the first thing I tried! :-) Obviously I can try again later, > but is the following svn command the correct way to obtain Even’s GDAL code: > > > > svn checkout https://svn.osgeo.o

[gdal-dev] how to read the color value of particular pixel

2010-07-12 Thread mail2vajram
i want to know how to read the color value of particular pixel. and previously i used the following code to read the color table.but now it throws null reference exception.why?. My objective is to prepare the Rater legend control based on pixel values. Gdal.AllRegister(); Dataset d

Re: [gdal-dev] GeoRaster: problem updating on predefined existing table

2010-07-12 Thread Ivan Lucena
> ---Original Message--- > From: Pasta Bolognese > To: gdal-dev@lists.osgeo.org > Subject: [gdal-dev] GeoRaster: problem updating on predefined existing table > Sent: Jul 12 '10 04:33 > > Hi All, > > following http://www.gdal.org/frmt_georaster.html I've imported a > small imma

RE: [gdal-dev] ogr2ogr problem converting UK Ordnance Survey MasterMap

2010-07-12 Thread Jez Walters
Chaitanya, That was the first thing I tried! :-) Obviously I can try again later, but is the following svn command the correct way to obtain Even’s GDAL code: svn checkout https://svn.osgeo.org/gdal/trunk gdal Or should I be trying something else? Jez Jez Walters Senior Consultant dire

Re: [gdal-dev] Oracle GeoRaster is not setting setModelSRID ?

2010-07-12 Thread Ivan Lucena
Yes, please follow the instruction on that page http://trac.osgeo.org/gdal/ , first bullet "Submit a new bug report (you need to login with an OSGeo Userid)". It will help a lot if you can attach a gdalinfo report of your input file and the version of GDAL that you are using. You can get that

[gdal-dev] OGR Driver for Norwegian SOSI standard

2010-07-12 Thread relet
Dear all, During the last month, we have developed an OGR driver for the Norwegian SOSI standard[1]. It has reached a state[2] where it can be used to read and use the basic features from SOSI files in OGR-enabled application like mapserver. The standard itself is the national standard for repres

[gdal-dev] GeoRaster: problem updating on predefined existing table

2010-07-12 Thread Pasta Bolognese
Hi All, following http://www.gdal.org/frmt_georaster.html I've imported a small immage using: C:\>gdal_translate -of georaster c:\tmp\map.png georaster:geoserver/geoserver,MFDEVDB and it works well. Then I've imported another immage using the same command and it worked well too ! Then I have d

RE: [gdal-dev] ogr2ogr problem converting UK Ordnance Survey MasterMap

2010-07-12 Thread Jez Walters
Even, Please forgive my ignorance, but where can I get the code you are referring to? I've just looked at http://download.osgeo.org/gdal/ and I still see v1.7.2 as the latest version of the GDAL library. I've tried using Subversion instead, like this: svn checkout https://svn.osgeo.org/gdal/

Re: [gdal-dev] Oracle GeoRaster is not setting setModelSRID ?

2010-07-12 Thread Pasta Bolognese
In that case, is there any way I can rise a ticket for it ? On Mon, Jul 12, 2010 at 12:57 AM, Ivan Lucena wrote: >>  What I mean is that If I can read the coordinate system (BNG), why >>  then I am forced to set it MANUALLY ? (using -co SRID=81989 to >>  assigned that SRID to the GeoRaster ob for