Click here to get back home

-> Accessing ArcSDE with C++ question <-

 HomeNewsGroups | Search | About
 comp.infosystems.gis    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
-> Accessing ArcSDE with C++ question <- Steve JORDI 05-10-2005
Get Chitika Premium
Posted by Steve JORDI on May 10, 2005, 4:13 pm
Please log in for more thread options
Hi,
I have to access ArcSDE using C++. The ArcGIS CDs
come with include files and DLL/LIB ones.

That's fine except that the examples I found on the
EDN.esri.com server don't work. They're in C but they
call functions that are defined nowhere (like
check_error).

Then I tried to find an OCX or VCL components but had no
success.

I don't need maps into my application, just need to be able
to query the server with a point (coordinate) and know
which polygon it cuts from other selected layers
(for example: that point is in school district 19. Info
taken from the schooldistrict layer).
So it's just SQL queries returning numbers, or strings, no
shapes, no geometry.

Thanks for any help.


Sincerely,
Steve JORDI

(Remove the K_I_L_LSPAM from my email address)
------------------------------------------------
1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com
Switzerland WWW: www.sjordi.com
------------------------------------------------
Volcanoes at www.sjordi.com/volcanoes
MovieDB at www.sjmoviedb.com
------------------------------------------------


Posted by peruviangeek on May 10, 2005, 10:53 am
Please log in for more thread options
Hello,

Implementation of check_error:

http://arcsdeonline.esri.com/Support_files/capi_concepts/check_error.htm

You can connect to ArcSDE using the C API http://arcsdeonline.esri.com

or you can use any language that lets you create COM objects and use
the ArcObjects API (most people go this route).

Regards,

Ragi Y. Burhum


Steve JORDI wrote:
> Hi,
> I have to access ArcSDE using C++. The ArcGIS CDs
> come with include files and DLL/LIB ones.
>
> That's fine except that the examples I found on the
> EDN.esri.com server don't work. They're in C but they
> call functions that are defined nowhere (like
> check_error).
>
> Then I tried to find an OCX or VCL components but had no
> success.
>
> I don't need maps into my application, just need to be able
> to query the server with a point (coordinate) and know
> which polygon it cuts from other selected layers
> (for example: that point is in school district 19. Info
> taken from the schooldistrict layer).
> So it's just SQL queries returning numbers, or strings, no
> shapes, no geometry.
>
> Thanks for any help.
>
>
> Sincerely,
> Steve JORDI
>
> (Remove the K_I_L_LSPAM from my email address)
> ------------------------------------------------
> 1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com
> Switzerland WWW: www.sjordi.com
> ------------------------------------------------
> Volcanoes at www.sjordi.com/volcanoes
> MovieDB at www.sjmoviedb.com
> ------------------------------------------------



Posted by Steve JORDI on May 10, 2005, 8:26 pm
Please log in for more thread options
Thanks,

Someone at ESRI replied the same thing.
The code for check_error is shown in the help file.
But where is it actually???
Copying and pasting code excerpts into an application
doesn't seem to be serious.
They either provide libs and dlls that are fully loaded
or they don't. I mean this looks like those libs, dlls
and include files are only partials.

Anyway, I'm looking for another way.
Thanks for your help.


Sincerely,
Steve JORDI

(Remove the K_I_L_LSPAM from my email address)
------------------------------------------------
1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com
Switzerland WWW: www.sjordi.com
------------------------------------------------
Volcanoes at www.sjordi.com/volcanoes
MovieDB at www.sjmoviedb.com
------------------------------------------------


Posted by Steve JORDI on May 11, 2005, 11:52 am
Please log in for more thread options
Well the direct C API kind of work. It can connect
but all returned results are wrong and some calls to
functions are undefined in the lib files! Great!

I had to modify a bit the sde connection sample from ESRI site
to have it compile in C++Builder. And it causes problems between
char ** and const char **, ";" are missing at end of lines, etc...
I really wonder whether the posted samples were tested someday.


>or you can use any language that lets you create COM objects and use
>the ArcObjects API (most people go this route).

Yes but that means buying it, and buying again for
deployement. And it's expensive. There is MapObjects LT
but it doesn't connect to ArcSDE!
This just to get a building number and the id of a Polygon!

Isn't there a commercial product that has royaltee free policies
to connect to ArcSDE and allowing me to query it with SQL and
get results (strings, integers), not maps?



Sincerely,
Steve JORDI

(Remove the K_I_L_LSPAM from my email address)
------------------------------------------------
1197 Prangins Email: stevejordiK_I_L_LSPAM@hotmail.com
Switzerland WWW: www.sjordi.com
------------------------------------------------
Volcanoes at www.sjordi.com/volcanoes
MovieDB at www.sjmoviedb.com
------------------------------------------------


Similar ThreadsPosted
ArcSDE client extension is now also available in gvSIG 1.1.1 February 13, 2008, 6:51 am
Experiences with Autocad 2007 & ESRI ArcSDE October 14, 2006, 11:05 am
2007/11/08 ESRI.ArcGIS.ArcSDE.v9.2 1DVD, other ... November 8, 2007, 12:03 pm
Accessing X, Y coordinates February 18, 2005, 1:48 pm
Accessing OGC WMS from Geomedia professional February 15, 2006, 5:56 am
Question about GIS April 12, 2004, 6:21 am
Question about DEM April 7, 2008, 5:32 pm
Newbie question January 27, 2005, 7:37 pm
newbie question. March 20, 2005, 7:15 pm
Question about which hardware to use. August 18, 2005, 8:16 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap