Search the web
Sign In
New User? Sign Up
gdal-vb6-appdev · GDAL VB6 Application Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 2 - 31 of 97   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#31 From: "wu_yueming" <wu_yueming@...>
Date: Tue Jul 31, 2007 8:39 pm
Subject: Re: Looking for VB library
wu_yueming
Offline Offline
Send Email Send Email
 
--- In gdal-vb6-appdev@yahoogroups.com, "wu_yueming" <wu_yueming@...>
wrote:
>
> Hi, all,
>
> I am new here. I am wondering if anybody could email me the GDAL VB6
> class and module files. These include the following key files:
>
>     * GDAL.bas - The main user visible module.
>     * GDALCore.bas - This module is for internal use.
>     * GDALDriver.cls - The GDALDriver class.
>     * GDALDataset.cls - The GDALDataset class.
>     * GDALRasterBand.cls - The GDALRasterBand class.
>     * GDALColorTable.cls - The GDALColorTable class.
>     * OGRSpatialReference.cls - The OGRSpatialReference class.
>     * OGRCoordinateTransformation.cls - The
> OGRCoordinateTransformation class.
>
> Or may you tell me where I could download please?
>
> Thanks a lot in advance!
>
> --Yueming
>

I found the library but still have another issue: I cannot find
gdal12vb.dll or gdal12.dll. Can anybody send me a copy of them please?
My email address is ywu@...

Thanks in advance!

--Yueming

#30 From: "wu_yueming" <wu_yueming@...>
Date: Thu Jul 26, 2007 7:17 pm
Subject: Looking for VB library
wu_yueming
Offline Offline
Send Email Send Email
 
Hi, all,

I am new here. I am wondering if anybody could email me the GDAL VB6
class and module files. These include the following key files:

     * GDAL.bas - The main user visible module.
     * GDALCore.bas - This module is for internal use.
     * GDALDriver.cls - The GDALDriver class.
     * GDALDataset.cls - The GDALDataset class.
     * GDALRasterBand.cls - The GDALRasterBand class.
     * GDALColorTable.cls - The GDALColorTable class.
     * OGRSpatialReference.cls - The OGRSpatialReference class.
     * OGRCoordinateTransformation.cls - The
OGRCoordinateTransformation class.

Or may you tell me where I could download please?

Thanks a lot in advance!

--Yueming

#29 From: Frank Warmerdam <warmerdam@...>
Date: Tue Jul 24, 2007 3:55 pm
Subject: Re: Re: trouble and trouble.....
nfwarmer
Offline Offline
Send Email Send Email
 
Alessandro Del Piero wrote:
>
>
> Hi Frank,
>
> Just following up Mariano's question, I've got FWTools 1.3.4 version
> and had it installed already. It comes with the vb6 development
> source code. Right. OK~
>
> In order to compile it, I manually edited GDALCore.bas and made all
> dll references point to "d:\Program Files\FWTools134\bin\gdal_fw.dll"
> that is exactly where I had it installed. However, the problem
> occurred when I ran the vb project as follows:
>
> "Real time error '53':
> File cannot be found 'd:\Program Files\FWTools134\bin\gdal_fw.dll'"
>
> I am pretty sure the file is there and the directory path is correct.
>
> Then I was thinking if I needed to get this dll registered with
> RegSvr32 command before using it. But it told that "DllRegisterServer
> entry point cannot be found, cannot register this file".
>
> I have been desperately keen on getting it work with my project. Hope
> anybody would help me out. Appreciate that very much!

Alex,

My normal practice when trying to use FWTools with VB6 is to alter the
"starts in directory" path for VB6 icon to be the FWTools bin directory.
Did you try this?  Other than copying all the contents of FWTools\bin
to C:\windows\system32 (not advised!) this was the only way I found to
ensure that FWTools stuff got picked up by the VB6 runtime.

I am thinking we should take the material currently generated from the
GDAL source tree at:

    http://www.gdal.org/vb6_tutorial.html

and make this into a wiki topic, so we can updated it with information
about using VB6 with FWTools and so forth.  I don't really use VB6 myself
so I'd like to empower the VB6 using folks to add information, hints, etc.
Let me know if you think this would be a good idea, and you would be
interested in adding information as you use the capabilities.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org

#28 From: "Alessandro Del Piero" <melbourne2003@...>
Date: Tue Jul 24, 2007 12:31 am
Subject: Re: trouble and trouble.....
cybercoolcn
Offline Offline
Send Email Send Email
 
Hi Frank,

Just following up Mariano's question, I've got FWTools 1.3.4 version
and had it installed already. It comes with the vb6 development
source code. Right. OK~

In order to compile it, I manually edited GDALCore.bas and made all
dll references point to "d:\Program Files\FWTools134\bin\gdal_fw.dll"
that is exactly where I had it installed. However, the problem
occurred when I ran the vb project as follows:

"Real time error '53':
File cannot be found 'd:\Program Files\FWTools134\bin\gdal_fw.dll'"

I am pretty sure the file is there and the directory path is correct.

Then I was thinking if I needed to get this dll registered with
RegSvr32 command before using it. But it told that "DllRegisterServer
entry point cannot be found, cannot register this file".

I have been desperately keen on getting it work with my project. Hope
anybody would help me out. Appreciate that very much!

Alex


--- In gdal-vb6-appdev@yahoogroups.com, "goffmarian" <goffmarian@...>
wrote:
>
> Frank I'm so sorry... I try to compile your test but doesn't
work....
>
> So I remember to you what i would like to do.... I wonna try to
make a
> stand alone program or a VBA program (ARCGIS enbedded) to shift a
> geotiff.
>
> there are so many problems, i try to explain:
> 1)I downloaded FWtools 1.0.0 and already installed it.
> 2)Downloaded gdal 1.3.0 and here starts problem: in fact first of
all
> try to register (with regsvr32 ) the gdal_fw.dll and doesn't work
(i
> try to register it also with Emsa DLL Register Tool nothing!),
> after that I don't understand what are the entry point that you
speak
> about in readme.txt file in vb6 folder!
>
> I don't know anythinks about C++ language!
>
> My resource program for now are dev-c++ and VBeditor enbedded in
argis.
>
> I'm sorry for your waste of time but I would like try to make this
> program.
>
> many thanks
> best regards!
>

#27 From: Frank Warmerdam <warmerdam@...>
Date: Mon May 28, 2007 1:25 pm
Subject: Re: VISUAL BASIC.NET and MrSID or CADRG
nfwarmer
Offline Offline
Send Email Send Email
 
sjakubiuk wrote:
> Hello All!!!
> I have a problem. I make a program using VB.NET. I would like to read
> any map in MrSID or in CADRG (it isn't important for me, I have a
> choice what I prefer).
> So I'm looking for any components, library, anything which helps me to
> do this (or how to use GDAL in VB.NET). I looking for any expamles,
> source code. It is very important for me so I would be very grateful.

Slawek,

This list deals with VB6 use with GDAL.  I believe that VB.Net can actually
use the CSharp bindings for GDAL.  These are normally discussed on the main
gdal-dev list, and there is some documentation at:

    http://trac.osgeo.org/gdal/wiki/GdalOgrInCsharp

There are also some notes on special requirements to build with MrSID support
at:

    http://trac.osgeo.org/gdal/wiki/MrSID

CADRG can be read using the OGDI driver but this is rather involved to setup
and use, so if you have a choice I'd encourage going with MrSID instead.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org

#26 From: "sjakubiuk" <kubusss3@...>
Date: Sun May 27, 2007 10:40 pm
Subject: VISUAL BASIC.NET and MrSID or CADRG
sjakubiuk
Offline Offline
Send Email Send Email
 
Hello All!!!
I have a problem. I make a program using VB.NET. I would like to read
any map in MrSID or in CADRG (it isn't important for me, I have a
choice what I prefer).
So I'm looking for any components, library, anything which helps me to
do this (or how to use GDAL in VB.NET). I looking for any expamles,
source code. It is very important for me so I would be very grateful.


Slawek

#25 From: Frank Warmerdam <warmerdam@...>
Date: Mon Mar 26, 2007 9:16 pm
Subject: Re: GDAL and Delphi
nfwarmer
Offline Offline
Send Email Send Email
 
augustynradek wrote:
> Do you know anyone using GDAL from Delphi?
>
> I tried to call GDAL??.dll routines, sucessfully to open, close and
> retrieve dataset properties, but every attempt to open RasterBand is
> making my application crash. I am taking as an example routines in
> Python and Visual Basic, but not sucessfully.

Radek,

There was a dutch developer affiliated with the UN using the library
from Delphi, but I don't have handy contact info for them.  So it is doable.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org

#24 From: "augustynradek" <augustynradek@...>
Date: Mon Mar 26, 2007 1:20 pm
Subject: GDAL and Delphi
augustynradek
Offline Offline
Send Email Send Email
 
Do you know anyone using GDAL from Delphi?

I tried to call GDAL??.dll routines, sucessfully to open, close and
retrieve dataset properties, but every attempt to open RasterBand is
making my application crash. I am taking as an example routines in
Python and Visual Basic, but not sucessfully.

regards

Radek Augustyn

#23 From: "gheysen_t" <gheysen.t@...>
Date: Fri Jul 14, 2006 12:17 pm
Subject: Select a subwindow from the source image for copying
gheysen_t
Offline Offline
Send Email Send Email
 
Hy,

Is-it possible to select a subwindow from the source image when
creating a new file in gdal vb6 binding like with "-projwin" in
gdal_translate ?

Thanks in advance.

Thibaut

#22 From: Frank Warmerdam <warmerdam@...>
Date: Tue Jun 20, 2006 3:35 am
Subject: Re: VB6 Bindings for OGR
nfwarmer
Offline Offline
Send Email Send Email
 
nekyiaosborn wrote:
> Does anyone know if there are VB6 bindings for OGR yet?

Tim,

I believe not, just for GDAL (rasters).

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org

#21 From: "nekyiaosborn" <tim.osborn@...>
Date: Mon Jun 19, 2006 11:56 pm
Subject: VB6 Bindings for OGR
nekyiaosborn
Offline Offline
Send Email Send Email
 
Does anyone know if there are VB6 bindings for OGR yet?

Thanks,

Tim

#20 From: "goffmarian" <goffmarian@...>
Date: Wed May 17, 2006 2:58 pm
Subject: trouble and trouble.....
goffmarian
Offline Offline
Send Email Send Email
 
Frank I'm so sorry... I try to compile your test but doesn't work....

So I remember to you what i would like to do.... I wonna try to make a
stand alone program or a VBA program (ARCGIS enbedded) to shift a
geotiff.

there are so many problems, i try to explain:
1)I downloaded FWtools 1.0.0 and already installed it.
2)Downloaded gdal 1.3.0 and here starts problem: in fact first of all
try to register (with regsvr32 ) the gdal_fw.dll and doesn't work (i
try to register it also with Emsa DLL Register Tool nothing!),
after that I don't understand what are the entry point that you speak
about in readme.txt file in vb6 folder!

I don't know anythinks about C++ language!

My resource program for now are dev-c++ and VBeditor enbedded in argis.

I'm sorry for your waste of time but I would like try to make this
program.

many thanks
best regards!

#19 From: Frank Warmerdam <warmerdam@...>
Date: Mon May 15, 2006 12:56 pm
Subject: Re: Re: sorry guys
nfwarmer
Offline Offline
Send Email Send Email
 
goffmarian wrote:
> ->
>> Mariano,
>>
>> Where do you find a reference to gdal12vb.dll?
>
>
> HI Frank thank you for your quickly answer.... i would like to create a
> little program to shift a geotiff and i would like to use your gdal
> warp API in vb6 and when i downloaded the source code there was inside
> a test for vb6, so i tryed to compile it but compilers ask me
> gdal12vb.dll! how can i fix it???

Mariano,

Ah.  Just edit GDALCore.bas and manually change gdal12vb.dll (or
gdal12.dll as it is distributed in GDAL 1.3.2) to whatever the name
is for the GDAL DLL in your distribution.  If you start with GDAL 1.3.2
you would change it to "gdal13.dll".

The FWTools installer tries to fix this up automatically.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org

#18 From: "goffmarian" <goffmarian@...>
Date: Mon May 15, 2006 9:52 am
Subject: Re: sorry guys
goffmarian
Offline Offline
Send Email Send Email
 
->
> Mariano,
>
> Where do you find a reference to gdal12vb.dll?


HI Frank thank you for your quickly answer.... i would like to create a
little program to shift a geotiff and i would like to use your gdal
warp API in vb6 and when i downloaded the source code there was inside
a test for vb6, so i tryed to compile it but compilers ask me
gdal12vb.dll! how can i fix it???

thx a lot!

#17 From: Frank Warmerdam <warmerdam@...>
Date: Fri May 12, 2006 6:14 pm
Subject: Re: sorry guys
nfwarmer
Offline Offline
Send Email Send Email
 
goffmarian wrote:
> Hi guys... I want to use GDAL in VB6 language but i don't
> find  "gdal12vb.dll"... where is it???
>
>
> I downloaded the source code gdal132.zip, and I already istalled
>
> FWTOOLS 1.0.0 but nothing.....

Mariano,

Where do you find a reference to gdal12vb.dll?  After installing
FWTools 1.0.0 you should have the supporting VB6 code in:

    C:\Program Files\FWTools1.0.0\vb6

The GDALCore.bas file in that directory will have import declarations
"C:\PROGRA~1\FWTOOL~1.0\bin\gdal_fw.dll".  I often find I need to modify
the working directory of the VB6 icon to be the C:\Program Files\
FWTool1.0.0\bin directory so that the rest of the supporting DLLs will
be found.  The gdal_fw.dll will be in that directory too.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org

#16 From: "goffmarian" <goffmarian@...>
Date: Fri May 12, 2006 3:13 pm
Subject: sorry guys
goffmarian
Offline Offline
Send Email Send Email
 
Hi guys... I want to use GDAL in VB6 language but i don't
find  "gdal12vb.dll"... where is it???


I downloaded the source code gdal132.zip, and I already istalled

FWTOOLS 1.0.0 but nothing.....

please help me.....

thanks in advance

best regards

Mariano

#15 From: df_opench10@...
Date: Sat Apr 22, 2006 9:55 am
Subject: Human-buttons
df_opench10@...
Send Email Send Email
 
This campaign is about Human beings, Democracy, UNHCR, Refugees, The Iraqis,
Islam, Kurds, Human rights, Respect, Money, Donations, Angelina Jolie,
Pavarotti, Giorgio Armani, Donors, Peace, History, Campaigns and about you if
you care about these words.

Hi there,

I am SAM, an Iraqi refugee living in Lebanon at the moment; I have spent the
last 10 years of my life as a refugee registered with the UNHCR in Beirut. The
last 4 years, I have spent as an activist for peace and human rights (especially
refugees and asylum seekers) on the Internet; I'm also books author and ebooks
publisher. I have launched many campaigns to improve our situation as refugees
in Lebanon and hopefully bring more understanding to our problems worldwide. I
helped make many changes and improvements at the UNHCR office in Beirut; I used
the Internet as the field for my activities (you can read more about that in my
free ebook 'MY CAMPAIGNS'). All my ebooks are free and could be download from my
sites.

This is my newest campaign, it's about the illegal and humiliating actions of
the UNHCR, who using photos of refugees as banners and human-buttons to collect
money. This is an abuse of the dignity and humanity of the refugees and must
stop immediately and a clear public apology present by The United Nations High
Commissioner for Refugees. My friends, I am talking about the pictures you can
see here: http://www.angelfire.com/un2/unhcrlebanon/human-buttons.htm

Also you can read my new campaign 'Urgent, we need smile' here:
http://www.tbns.net/lebanon2/email_me.htm

For more info about UNHCR and life of refugees you can read my free ebooks. I
invite you as fellow humans and members of the world community to support my
campaign by reading my article on my site and see the human-buttons. The
campaign is to support and improve the UNHCR http://www.unhcr.org especially
after the last scandals in the UN and UNHCR, just for example:
http://www.mizzima.com/archives/news-in-2005/news-in-april/12-April05-22.htm

"We make demonstration and fast because the UNHCR office in Cairo did nothing
for our problem..." http://news.bbc.co.uk/2/hi/africa/4440730.stm

Together we will build better world.

You could reach me fast via this form:
http://lebanon.arcadepages.com/email_me.htm
  and if you like to know more about me, you can google for my name 'osam
altaee'.

Thanks
THE TRUTH WARRIOR
http://www.psend.com/users/unhcrlebanon
  http://www.unhcr.us

#14 From: "westcard" <west.card@...>
Date: Wed Nov 23, 2005 8:00 pm
Subject: Current Project
westcard
Offline Offline
Send Email Send Email
 
I am creating a mapping software that will allow the loading of a base
topo map image and then it will generate height data in both image and
XYZ export.  GDal is used to georeference the basemap image so that
the export will contain correct XY locations in Long\Lat values.

This project has been a long time in construction, and will be
distributed as freeware.  My main usage for this is for MSTS
(Microsoft Train Simulator) users to get free DLG maps (GeoTiff) and
then be able to create XYZ data for inport into MSTS.

Although I can see a few additional usages for this type of software.

#13 From: Frank Warmerdam <warmerdam@...>
Date: Wed Nov 23, 2005 7:46 pm
Subject: Re: Re: [Gdal-dev] VB6 problems gdal_fw.dll reference
nfwarmer
Offline Offline
Send Email Send Email
 
On 11/23/05, Gerald Buckmaster <buckmasterjunior@...> wrote:
> One might be a modification to Frank's installation script - is it possible
> to find and replace an existing FWTools entry in the system variable PATH
> automatically in the FWTools installation script?

Gerald,

I specifically avoid updating PATH to avoid having FWTools conflict
with other packages with shared components on the system.  However,
you might well want to setup a "GDAL_BIN" directory somewhere, point
your PATH to include it, and when you want to upgrade to a newer
FWTools just copy all DLLs from FWTools\bin to it.

> Another "fix" might be implementing a installation strategy that preserves a
> generic directory, i.e. FWTools vice FWTools1.0.0a3.  You would still have a
> need to set PATH, but it would only need to be accomplished once.  Of course
> an uninstall would need to remove the entry as well.

I think you can pick an install directory, so you could always remove the
version info from the install path at install time.  If you do this, it is
best to uninstall the previous version before installing over it, though
this isn't strictly necessary.  It just avoid having old icons around with
confusing version information.

> Another "fix" could be to determine which GDAL libraries are critical to
> your VB6 app and implement a custom installation of GDAL...though this could
> be a configuration nightmare if done without a thorough plan, and MIT
> licensing may preclude a "partial" installation.

This is fine as far as I know.

> What do you think Frank?  Are you using MSI for FWTools installation?

I don't use MSI, I use "NSIS" for the installer stuff.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

#12 From: Gerald Buckmaster <buckmasterjunior@...>
Date: Wed Nov 23, 2005 6:46 pm
Subject: Re: [Gdal-dev] VB6 problems gdal_fw.dll reference
buckmasterju...
Offline Offline
Send Email Send Email
 
West,
 
You are seeing a portion of this reply twice, as I neglected to reply back everyone the first time.
 
I had the same problem about a month ago.  If I recall right, adding the path to gdal_fw.dll to the system variable 'PATH' and restarting VB6 seemed to do the trick.
 
There still exists the problem everytime you upgrade FWTools, you would need to change your PATH to reflect the location of gdal_fw.dll.
 
This "need" leads to a number of possible "fixes".
 
One might be a modification to Frank's installation script - is it possible to find and replace an existing FWTools entry in the system variable PATH automatically in the FWTools installation script?
 
Another "fix" might be implementing a installation strategy that preserves a generic directory, i.e. FWTools vice FWTools1.0.0a3.  You would still have a need to set PATH, but it would only need to be accomplished once.  Of course an uninstall would need to remove the entry as well.
 
Another "fix" could be to determine which GDAL libraries are critical to your VB6 app and implement a custom installation of GDAL...though this could be a configuration nightmare if done without a thorough plan, and MIT licensing may preclude a "partial" installation. 
 
What do you think Frank?  Are you using MSI for FWTools installation?
 
Buck
 
BTW - I recently started a Yahoo! group called gdal-vb6-appdev.  Not very many members, but it might be good to share VB6-gdal programming tricks and tips there.
http://groups.yahoo.com/group/gdal-vb6-appdev/


"Card, West" <West.Card@...> wrote:
I am trying to use your lib’s within VB6  but I am unable to get anything to work.  I tried the VB6 test program but for some reason VB states that it can’t create a reference to the gdal_fw.dll.  Is there some reason for this that I am missing?
 
West L. Card
Admin Assistant.
T 509.535.5454 F 509.535.5725

CTE 140 S. Arthur St.
Suite 500
Spokane, Washington 99202
 
_______________________________________________
Gdal-dev mailing list
Gdal-dev@...
http://lists.maptools.org/mailman/listinfo/gdal-dev



Gerald Buckmaster
EAC Society Member# 3086
Ebay Store: American Copper Coins
United States Air Force Retired


Yahoo! FareChase - Search multiple travel sites in one click.

#11 From: Frank Warmerdam <warmerdam@...>
Date: Wed Nov 23, 2005 4:27 pm
Subject: Re: [Gdal-dev] VB6 problems gdal_fw.dll reference
nfwarmer
Offline Offline
Send Email Send Email
 
On 11/22/05, Card, West <West.Card@...> wrote:
>
>
>
> I am trying to use your lib's within VB6  but I am unable to get anything to
> work.  I tried the VB6 test program but for some reason VB states that it
> can't create a reference to the gdal_fw.dll.  Is there some reason for this
> that I am missing?

West,

My approach to dealing with this is to edit the starting
directory of the VB6 icon to be the FWTools directory.
That ensures that the gdal_fw.dll and all related DLLs
are found without any problem.

Another approach might be to dump all DLLs from the
FWTools\bin directory into windows\system32, but I
abhor doing that, so I'm not encouraging it.

I am not exactly sure how this is supposed to be addressed
in a "proper" VB6 app depending on external DLLs.  Note
it isn't enough to include the specific paths to the gdal_fw.dll
in the vb6 declarations, because gdal_fw.dll in turn depends
on alot of DLLs.

PS. I have cc:ed the gdal-vb6-appdev list in case there is
better advice there.  That would be the best place to discuss
VB6 issues.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

#10 From: Frank Warmerdam <warmerdam@...>
Date: Wed Nov 2, 2005 8:24 pm
Subject: Re: Vb6 Implementation
nfwarmer
Offline Offline
Send Email Send Email
 
On 11/2/05, cdcespon <cdcespon@...> wrote:
> hi,i´m going to implement a solution with Postgis and vb6 and I need to
> know if anyone who has done it before, can tell me something about his
> experience.

Claudio,

Were you hoping to use OGR bindings in VB6 to access PostGIS
or use VB6 directly to send SQL to PostGIS and parsing WKT or
WKB responses yourself?

There are no OGR bindings in VB6, so if that was you plan
it may be challenging!

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

#9 From: "cdcespon" <cdcespon@...>
Date: Wed Nov 2, 2005 5:53 pm
Subject: Vb6 Implementation
cdcespon
Offline Offline
Send Email Send Email
 
hi,i´m going to implement a solution with Postgis and vb6 and I need to
know if anyone who has done it before, can tell me something about his
experience.
Thanks sincerely.

Claudio Cespón.

#8 From: Frank Warmerdam <warmerdam@...>
Date: Wed Oct 19, 2005 3:32 am
Subject: Re: Creating empty VRT files in VB6
nfwarmer
Offline Offline
Send Email Send Email
 
On 10/18/05, Gerald Buckmaster <buckmasterjunior@...> wrote:
> Greetings VB6 GDAL programmers (You and I so far Frank ;^),
>
> I have successfully converted, georeferenced and compressed BMPs to
> GeoJP2s completely using the GDAL VB6 bindings and VRT and JP2KAK
> drivers, and of course the exercise code written by Frank.
>
> I did have issues:
>
> I was unable to create a virtual dataset "in memory" by creating it
> with an empty filename.  In fact, such code as:
>
>     Set Drv = GDAL.GetDriverByName("VRT")
>     Set vrtDS = Drv.CreateCopy("", SrcDS, True, Nothing)
>
> hard crashed VB6 IDE everytime, until I replaced the "" with a
> filename.

Buck,

Hmm, I'll try and look into this.

> I noticed there are no progress callbacks for createcopy().  This can
> be a real problem with VB GUIs.  My app will be batch processing
> several files at a setting, so I can report progress between files
> with little effort.  What I am worried about is a user clicking on a
> window, thinking the app has locked up.  Simple socialization using
> a "Each image takes 60 seconds to process...Currently processing Image
> 3" window, will help, but what would it take to implement progress
> callback within the function?

The CreateCopy() method in C++ does have a progress function but
I just have no idea how to implement a callback into VB6.  Frankly, it
would take quite a bit of motivation for me to dig into VB6 and related
stuff deeply enough to figure out how to do this.

> Thanks for all your help.  I will continue to report on GDAL use in
> VB6 apps in this group.

Cool.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

#7 From: "Gerald Buckmaster" <buckmasterjunior@...>
Date: Wed Oct 19, 2005 2:44 am
Subject: Creating empty VRT files in VB6
buckmasterju...
Offline Offline
Send Email Send Email
 
Greetings VB6 GDAL programmers (You and I so far Frank ;^),

I have successfully converted, georeferenced and compressed BMPs to
GeoJP2s completely using the GDAL VB6 bindings and VRT and JP2KAK
drivers, and of course the exercise code written by Frank.

I did have issues:

I was unable to create a virtual dataset "in memory" by creating it
with an empty filename.  In fact, such code as:

     Set Drv = GDAL.GetDriverByName("VRT")
     Set vrtDS = Drv.CreateCopy("", SrcDS, True, Nothing)

hard crashed VB6 IDE everytime, until I replaced the "" with a
filename.

What I ended up doing was allowing the VRT driver to create the XML
file (called image.vrt) from the programmatic string (which I had
hardcoded); set the projection, read/wrote the raster values, etc.;
and finally, instantiate an additional driver/dataset (JP2KAK) pair
for creating a copy of the "in-memory" VRT as a GeoJP2.

The benefit is I now have a XML file for cataloging purposes, but it
seems strange I need to utilize the filesystem in order to reference
the XML string that are being referenced nicely by the respective
Dataset properties.

I noticed there are no progress callbacks for createcopy().  This can
be a real problem with VB GUIs.  My app will be batch processing
several files at a setting, so I can report progress between files
with little effort.  What I am worried about is a user clicking on a
window, thinking the app has locked up.  Simple socialization using
a "Each image takes 60 seconds to process...Currently processing Image
3" window, will help, but what would it take to implement progress
callback within the function?

Thanks for all your help.  I will continue to report on GDAL use in
VB6 apps in this group.

Buck

#6 From: "Gerald Buckmaster" <buckmasterjunior@...>
Date: Thu Oct 13, 2005 4:30 am
Subject: Re: GDAL.Open?
buckmasterju...
Offline Offline
Send Email Send Email
 
--- In gdal-vb6-appdev@yahoogroups.com, Frank Warmerdam
<warmerdam@p...> wrote:
>
> Sorry about that.  Yes, I did mean OpenDS.  That name is
idosyncratic
> to the VB6 bindings (I couldn't use a method called Open due to a
keyword
> conflict) so I keep forgetting about it.
>
  But basically you
> just build up a big string with the VRT XML in it and pass that as
the
> filename to gdal.OpenDS().
>
> I realize this seems odd, but deep in the VRT driver Open method it
has
> code to recognise that if the "Datasource name" starts
with "<VRTDataset"
> that the datasource name itself is the XML ... no need to load it
from a file.
>
OH!!!! Now I understand!  Like I said, it takes a couple of times
before the left side starts working.

> BTW, I have added a link to this list in the GDAL VB6 tutorial doc.
>
Good, Thanks.  hopefully that will generate interest in using a now
fairly cheap Windoze IDE for developing GDAL apps.

Buck

#5 From: "Gerald Buckmaster" <buckmasterjunior@...>
Date: Thu Oct 13, 2005 4:25 am
Subject: Re: GDAL.Open?
buckmasterju...
Offline Offline
Send Email Send Email
 
Greetings,

Sometimes it takes several re-reads before I get it.

I think I understand now that I need to programatically write an
actual XML file (image.vrt) to disk, then open that file with
GDAL.Open(), then, after changing the driver to JP2KAK and setting
some creatoptions, call .CreateCopy() to capture the raster now with
the georeferencing, projection, etc.

Am I on the right track?

Buck

--- In gdal-vb6-appdev@yahoogroups.com, "Gerald Buckmaster"
<buckmasterjunior@y...> wrote:
>
> --- In gdal-vb6-appdev@yahoogroups.com, Frank Warmerdam
> <warmerdam@p...> wrote:
> >
> > My suggestion is to use FWTools 1.0.0a3 distribution which does
> > include the Kakadu driver.  The FWTools installer also installs
the
> > VB6 bindings and attempts to update the GDAL DLL path
appropriately.
> >
> This distribution worked as you stated...just had to close VB6 and
> reopen for it to find gdal_fw.dll.
> >
> > Internally gdal_translate usually creates a virtual dataset, and
then
> > calls CreateCopy() with that virtual dataset as the input
datasource.
> > I am suggesting that you create an XML description of your virtual
> > datasource (doing subwindowing, etc) and pass that XML to
GDAL.Open()
> > which will return a virtual datasource that you can pass as input
to
> > CreateCopy().
> >
> Frank, I've searched the GDAL VB modules and cannot find GDAL.Open
> ()...I did find GDAL.OpenDS()...is that correct?  I'm still missing
> how to pass the XML to GDAL.Open()/GDAL.OpenDS().  Could you give
an
> syntax example of that function referencing the XML?
>
> Thanks,
> Buck
>

#4 From: Frank Warmerdam <warmerdam@...>
Date: Thu Oct 13, 2005 4:20 am
Subject: Re: GDAL.Open?
nfwarmer
Offline Offline
Send Email Send Email
 
On 10/13/05, Gerald Buckmaster <buckmasterjunior@...> wrote:
> Frank, I've searched the GDAL VB modules and cannot find GDAL.Open
> ()...I did find GDAL.OpenDS()...is that correct?

Buck,

Sorry about that.  Yes, I did mean OpenDS.  That name is idosyncratic
to the VB6 bindings (I couldn't use a method called Open due to a keyword
conflict) so I keep forgetting about it.

>  I'm still missing
> how to pass the XML to GDAL.Open()/GDAL.OpenDS().  Could you give an
> syntax example of that function referencing the XML?

Well, I don't have VB6 handy to test with just now.  But basically you
just build up a big string with the VRT XML in it and pass that as the
filename to gdal.OpenDS().

I realize this seems odd, but deep in the VRT driver Open method it has
code to recognise that if the "Datasource name" starts with "<VRTDataset"
that the datasource name itself is the XML ... no need to load it from a file.

BTW, I have added a link to this list in the GDAL VB6 tutorial doc.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

#3 From: "Gerald Buckmaster" <buckmasterjunior@...>
Date: Thu Oct 13, 2005 4:07 am
Subject: GDAL.Open?
buckmasterju...
Offline Offline
Send Email Send Email
 
--- In gdal-vb6-appdev@yahoogroups.com, Frank Warmerdam
<warmerdam@p...> wrote:
>
> My suggestion is to use FWTools 1.0.0a3 distribution which does
> include the Kakadu driver.  The FWTools installer also installs the
> VB6 bindings and attempts to update the GDAL DLL path appropriately.
>
This distribution worked as you stated...just had to close VB6 and
reopen for it to find gdal_fw.dll.
>
> Internally gdal_translate usually creates a virtual dataset, and then
> calls CreateCopy() with that virtual dataset as the input datasource.
> I am suggesting that you create an XML description of your virtual
> datasource (doing subwindowing, etc) and pass that XML to GDAL.Open()
> which will return a virtual datasource that you can pass as input to
> CreateCopy().
>
Frank, I've searched the GDAL VB modules and cannot find GDAL.Open
()...I did find GDAL.OpenDS()...is that correct?  I'm still missing
how to pass the XML to GDAL.Open()/GDAL.OpenDS().  Could you give an
syntax example of that function referencing the XML?

Thanks,
Buck

#2 From: Frank Warmerdam <warmerdam@...>
Date: Tue Oct 11, 2005 6:02 pm
Subject: Re: [Gdal-dev] two subjects - Katrina Good News and Request for VRT API VB6 binding
nfwarmer
Offline Offline
Send Email Send Email
 
On 10/9/05, Gerald Buckmaster <buckmasterjunior@...> wrote:
> Frank,
>
> I have created the GDAL VB App Dev group on Yahoo Groups and I am
> cross-posting.  I have looks at the tutorials as you suggested above, and
> loaded the gdalvbtest project to run.  Realizing I would need to understand
> the VRT before moving into saving out as Kakadu JP2, I wanted to see if I
> could read the attributes from a sample JP2 with the gdalvbtest project.  I
> found out that gdal12vb.dll doesn't have the JP2KAK driver built in.  Is it
> possible you could compile a gdal12vb.dll with the Kakadu driver?

Gerald,

My suggestion is to use FWTools 1.0.0a3 distribution which does
include the Kakadu driver.  The FWTools installer also installs the
VB6 bindings and attempts to update the GDAL DLL path appropriately.

> My strategy is to first determine what will go into the VRT XML.  Most of
> the items needed are already being generated by my code.  I am confused how
> the GDAL.Open() function will work with the XML.  Shouldn't it be more like
> CreateCopy()?  Even then, I really don't understand how the XML gets used
> unless something like SetGeoTransform() is involved.

Internally gdal_translate usually creates a virtual dataset, and then
calls CreateCopy() with that virtual dataset as the input datasource.
I am suggesting that you create an XML description of your virtual
datasource (doing subwindowing, etc) and pass that XML to GDAL.Open()
which will return a virtual datasource that you can pass as input to
CreateCopy().

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@...
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

Messages 2 - 31 of 97   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help