We evaluate GeoBase as an alternative to the current Routing/Geocoding/Map solution that we use.
Our software is written in Delphi. I was able to import the geobase_com component to delphi, but encounter the error "at least one type in the assembly could not be loaded. Check the LoaderExceptions-property to find out more".
Has somebody successfully integrated GeoBase_com in Delphi?
Any help would be appreciated
thank you in advance
marius
Delphi Code (exception in the last line): procedure TForm1.Button1Click(Sender: TObject); var myRouteMatrixFactory : _RouteMatrixFactory; myStops : _RouteStopArray; myRouteStopFactory : _RouteStopFactory; myLatLonFactory : _LatLonFactory; myRoutingStrategy : _RoutingStrategy; myRouteMatrix : _RouteMatrix; i, j : Integer; myDistances : PSafeArray; myDistance : Double; begin
One of our customers had developed his application with Delphi but they since have moved to C#. Regarding your error, it is probably best to send more details to GeoBase support as it may involved some back and forth in reproducing the issue. Please send the details to gbsupport@telogis.com with the following infomation: - GeoBase version, - log file (if any exists), - exact error message with stack trace, - steps to reproduce, - sample file - and any information that could be helpful.
When I start my test Application the "Try Now" - window is shown immediately. When I start some trial application from Telogis (MapExplorerLite.exe), before the “Try Now” – window is shown, an elevation window with some copy-command of the TrialLicence file appears.
When I start my test Application after 1 run of MapExplorerLite.exe, the Windows Elevation Window with the Copy-Command is shown too, after that the “Try now” window, and my test application works without exceptions.
We develop our user application in delphi, the Geobase COM import can be made to work but it does not expose the OnRender functions needed to draw to the map correctly and there were several other issues that caused problems. We used C# to create an Active-X with the geobase map within it and then added a command structure to add, edit delete markers, routes, truck attributes along with commands to navigate the map, then embedded the active-x control into our delphi app. If you google c# active-x examples you should find some good walkthroughs on how to do this.
We tried for some time to get the COM import to work natively in Delphi and eventually found that using c# was the only way to get all functionality needed out of geobase.