[gdal-dev] gdal dataset

2012-09-07 Thread Neelima Emmani
Hi All,
I have generated gdal , ogr , osr dlls and added them to my c# project. Now i 
am trying to run the application that is given in gdal download which is named 
as gdalread.cs.When I run it , it is asking for a dataset . Can any one let me 
know if i have to specify filename over here. Actually i want to read enc file 
which has s57 datset. So, I am confused if i need to specify filelname or s57 
over here.
Awaiting reply.

With Regards,
Neelima Emmani
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] gdal dataset

2012-09-07 Thread Chaitanya kumar CH
Neelima,

For me specifying the .000 file to ogrinfo and ogr2ogr worked.

On Fri, Sep 7, 2012 at 11:32 AM, Neelima Emmani 
neelima.emm...@iictechnologies.com wrote:

  Hi All,
 I have generated gdal , ogr , osr dlls and added them to my c# project.
 Now i am trying to run the application that is given in gdal download which
 is named as gdalread.cs.When I run it , it is asking for a dataset . Can
 any one let me know if i have to specify filename over here. Actually i
 want to read enc file which has s57 datset. So, I am confused if i need to
 specify filelname or s57 over here.
 Awaiting reply.

 With Regards,
 Neelima Emmani

 ___
 gdal-dev mailing list
 gdal-dev@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/gdal-dev




-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] DBF file associated with Raster

2012-09-07 Thread Even Rouault

 Another possibility is that the GDAL PAMDataset could store RAT in
 auxiliary xml files, so you can keep the raster data as it is. The
 problem is that you would need to convert the content of your DBF to the
 PAMDataset schema.

 Does it makes sense Even?

Yes, I was also thinking to some sort of Raster Attribute Table, but didn't want
to pronounce such a big word without more information ;-)

If it is some kind of RAT, it might be possible to convert it to the PAM format,
but as there's no tool to do that, that needs some scripting skills. And I'm not
sure that many tools make actual use of GDAL RAT, so the usefulness might be
limited. Depending on the intended usage, it might be sufficient to deal with
the raster and the vector separately : for example, opening the DBF as an
attribute table in QGIS and using the picking tool of QGIS to read the value of
a pixel, and making the correlation manually.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] gdal dataset

2012-09-07 Thread Chaitanya kumar CH
Neelima,

Perhaps I didn't understand your question.

You said that it was asking for a dataset. How did it ask?
What were the error messages you got?

In your future queries, please include as much information as you can
provide.

On Fri, Sep 7, 2012 at 12:42 PM, Neelima Emmani 
neelima.emm...@iictechnologies.com wrote:

  Hi Chaitanya,
 How did you  do that. What version of gdal are you using. Can you please
 share your code snipplet with me.

 With Regards,
 Neelima Emmani

   --
 *From:* Chaitanya kumar CH [chaitanya...@gmail.com]
 *Sent:* Friday, September 07, 2012 12:04 PM
 *To:* Neelima Emmani
 *Cc:* gdal-dev@lists.osgeo.org
 *Subject:* Re: [gdal-dev] gdal dataset

  Neelima,

 For me specifying the .000 file to ogrinfo and ogr2ogr worked.

 On Fri, Sep 7, 2012 at 11:32 AM, Neelima Emmani 
 neelima.emm...@iictechnologies.com wrote:

  Hi All,
 I have generated gdal , ogr , osr dlls and added them to my c# project.
 Now i am trying to run the application that is given in gdal download which
 is named as gdalread.cs.When I run it , it is asking for a dataset . Can
 any one let me know if i have to specify filename over here. Actually i
 want to read enc file which has s57 datset. So, I am confused if i need to
 specify filelname or s57 over here.
 Awaiting reply.

 With Regards,
 Neelima Emmani

 ___
 gdal-dev mailing list
 gdal-dev@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/gdal-dev




 --
 Best regards,
 Chaitanya kumar CH.

 +91-9494447584
 17.2416N 80.1426E




-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] gdal error

2012-09-07 Thread Neelima Emmani
Hi
when I try to invoke Gdal.AllRegister I get the below error:
The type initializer for OSGeo.GDAL.GdalPINVOKE threw an exception.
When i checked for a online solution, they said that it is looking for 
gdal_wrap.dll.
Yes, my project does not contain any gdal_wrap.dll.

First thing is that, when i try to create a interface with
nmake /f makefile.vc interface.
Things are fine.There was no error. Here I also have a question, How do i check 
if this step of inerface is successful.
And then i went with next step
C:\GDAL\swig\csharp nmake /f makefile.vc
At this step, i am getting errors in gdal_wrap.cpp.It says at line 448 , it is 
unable to convert 'cplxmlnode *' to '_cplxmlnode *'. Can any one  me in solving 
this.

Secondly, in the mean time I tried to generate dlls from C#. And was successful 
in making gdal, osr  ogr dlls for csharp. And then tried to run an application 
given by gdal i.e., gdalread.cs. It gave me error as said in the start of this 
mail message.
If i am not clear, please let me know.
Awaiting reply.
With Regards,
Neelima Emmani


From: Chaitanya kumar CH [chaitanya...@gmail.com]
Sent: Friday, September 07, 2012 12:50 PM
To: Neelima Emmani
Cc: gdal dev
Subject: Re: [gdal-dev] gdal dataset

Neelima,

Perhaps I didn't understand your question.

You said that it was asking for a dataset. How did it ask?
What were the error messages you got?

In your future queries, please include as much information as you can provide.

On Fri, Sep 7, 2012 at 12:42 PM, Neelima Emmani 
neelima.emm...@iictechnologies.commailto:neelima.emm...@iictechnologies.com 
wrote:
Hi Chaitanya,
How did you  do that. What version of gdal are you using. Can you please share 
your code snipplet with me.

With Regards,
Neelima Emmani


From: Chaitanya kumar CH [chaitanya...@gmail.commailto:chaitanya...@gmail.com]
Sent: Friday, September 07, 2012 12:04 PM
To: Neelima Emmani
Cc: gdal-dev@lists.osgeo.orgmailto:gdal-dev@lists.osgeo.org
Subject: Re: [gdal-dev] gdal dataset

Neelima,

For me specifying the .000 file to ogrinfo and ogr2ogr worked.

On Fri, Sep 7, 2012 at 11:32 AM, Neelima Emmani 
neelima.emm...@iictechnologies.commailto:neelima.emm...@iictechnologies.com 
wrote:
Hi All,
I have generated gdal , ogr , osr dlls and added them to my c# project. Now i 
am trying to run the application that is given in gdal download which is named 
as gdalread.cs.When I run it , it is asking for a dataset . Can any one let me 
know if i have to specify filename over here. Actually i want to read enc file 
which has s57 datset. So, I am confused if i need to specify filelname or s57 
over here.
Awaiting reply.

With Regards,
Neelima Emmani

___
gdal-dev mailing list
gdal-dev@lists.osgeo.orgmailto:gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev



--
Best regards,
Chaitanya kumar CH.

+91-9494447584tel:%2B91-9494447584
17.2416N 80.1426E



--
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] Compile GDAL with HDF4 and Shapefile-Support (64bit)

2012-09-07 Thread David1980
Maybe I need an older version of the C#-GDAL-bindings in order to use the
version included in FW-Tools ?
Since the code for loading GDAL is quite simple and works with newer
GDAL-versions (32 / 64 bit) that seems to be the most likely reason for me. 

Has anybody used (version 1.7 32bit / FW-Tools-)GDAL in C# (or another
Visual Studio language) with raster- and vector-graphics at the same time ?
Then it might be helpfull for me to know the version and source of the
bindings used. :)



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Compile-GDAL-with-HDF4-and-Shapefile-Support-64bit-tp4998275p5000403.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


[gdal-dev] Can't delete feature from shapefile in python

2012-09-07 Thread Hugo
Hello all,

I'm trying to delete a number of records from shapefile based on an
attribute. The strange thing that is happening is that feature count never
changes but if i make the same filter a second time the features are no
longer there. The code i'm using is below. I should be doing something
wrong for sure.

import os
from osgeo import ogr

path = 'C:\\datasets'
os.chdir(path)

shp = ogr.Open('locais.shp',1)

layer = shp.GetLayer(0)
print layer.GetFeatureCount()
layer.SetAttributeFilter('name ilike nacional%')

feat = layer.GetNextFeature()
while feat:
featId = feat.GetFID()
layer.DeleteFeature(featId)
feat = layer.GetNextFeature()

shp.Destroy()

Any suggestions? Thanks in advance.
Regards,

-- 
Hugo Martins
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev