Introduction

GeoBase is a high-performance Geospatial mapping engine designed for rapid development and low total cost of deployment. Services provided by GeoBase include:

  • Street Mapping
  • Reverse Geocoding
  • GeoFencing
  • Address Lookup (Geocoding)
  • Routing & Route Optimization
  • Navigation
  • Data Import Tools

This tutorial will describe how to create a GeoBase-specific Visual Studio project. This tutorial should provide a useful starting point for every GeoBase project that you create. At the end of this tutorial you will be able to:

  • Create a new Visual Studio Project
  • Add a reference to the GeoBase .NET DLL
  • Add a namespace directive to your code files

Prerequisites

This tutorial assumes familiarity with Microsoft’s Visual Studio. You will need a copy of Visual Studio 2005 or later and a moderately-specified desktop computer. Experience with digital mapping technology is assumed only at a low level.

Setup

Before we can start using GeoBase we must obtain a copy of the software development kit (SDK). A 30-day trial of the SDK is available for download from the GeoBase website. Choose between two versions of the SDK. One version comes loaded with HERE data for the US (California and Nevada), the other for the UK and Ireland.
Download and install the SDK of your choice. If you don’t already have a license you will be guided through the simple process to obtain a trial license.

Creating the Project

Launch Visual Studio and create a new Project.


  


Make the appropriate selections to create a new C# Windows Application.


 


Name your project appropriately and click ‘OK’.

If you are using Visual Studio 2010 or later, you must make sure the target framework for your project is the full .NET framework and not a Client Profile. To check the target framework, right click on the project in the Solution Explorer and choose Properties. On the Application tab of the project properties dialog, check that the Target Framework name does not end in Client Profile.

Before you begin to write code you should add a reference to ‘geobase.net.dll’. Adding a reference will allow you to harness GeoBase’s functionality, as well as provide IntelliSense.
 
Add a reference now by right-clicking the ‘References’ folder in ‘Solution Explorer’ and selecting ‘Add Reference’. You will be prompted to select a component. Click the ‘Browse’ tab and navigate to ‘C:\Program Files\Telogis\GeoBase\bin’. Select ‘geobase.net.dll’ and click ‘OK’.


 

Add the following namespace directive at the top of your source code. This will make your code easier to read and write.
       

using Telogis.GeoBase;


Similarly, if you use other GeoBase services (such as routing and navigation) you may wish to add other appropriate directives, such as:
       

using Telogis.GeoBase.Routing;
using Telogis.GeoBase.Navigation;


That’s it! You’re now ready to code and run your GeoBase application.


For more tutorials and examples browse the ‘GeoBase Tutorials’ and ‘Common Concepts’ section of the GeoBase reference documentation, included with the GeoBase SDK. Or, view our documentation and tutorials online.


If you have any queries please don’t hesitate to contact us. We trust that you will enjoy the simplicity and ease-of-use afforded by the GeoBase .NET component.
 

Published, Jul 7th 2016, 22:35

Tagged under: dotnet geobase

1 Comments

jeal2001 says: on 20/6/11
I am trying run examples yours, but I cannot; I just only see the: GEOBASE TRIAL 30 DAYS REMAIN NO COMMERICAL USE I am VB.NET