MapBasic is a programming language for the creation of additional tools and functionality for the GIS application MapInfo Professional. MapBasic also allows programmers to develop software in popular programming languages such as C# .NET and use these with MapInfo Professional to create feature-rich tools and extensions.
Questions tagged [map-basic]
16 questions
2
votes
2 answers
SQL - Split query data stream into 2 separate tables [Theoretical Optimisation]
I am writing some SQL code to be run in MapBasic (MapInfo's Programming language). The best way to describe the question is with an example:
I want to select all records where ShipType="Barge" into a query named Barges and I want all the remaining…

Sancarn
- 2,575
- 20
- 45
1
vote
1 answer
Integrating Mapinfo and .NET C#
I'm developing an app in MapBasic that calls methods in a .NET assembly library
This is how I Declare the method in my MapBasice enviroment.
Declare Method showMainWindow Class "mynamespace.AldebaranInterface" Lib "Aldebaran.dll" ()
Sub ShowWindow
…

mdev
- 472
- 7
- 18
1
vote
3 answers
Label a set of objects with (A->Z,AA->ZZ, AAA->ZZZ) in VBA
I have a set which has an unknown number of objects. I want to associate a label to each one of these objects. Instead of labeling each object with a number I want to label them with letters.
For example the first object would be labeled A the…

Haki_z
- 85
- 1
- 9
1
vote
1 answer
Adding marker Bounce and Drop effect to markers on map box
I am new to map box api, and have been using google maps api earlier. Anyways, my issue is that I need to give the marker on mapbox, a drop animation when the marker appears on the map and once the user starts to drag the marker, I need to give it a…

Corporal
- 157
- 3
- 14
0
votes
0 answers
How can I change a visual studio code that creates a thematic map using equal ranges method, into creating thematic map using Natural breaks?
I am trying to use visual studio to create a thematic map that reads the
data in my Mapinfo table " Neighborhoods" and show them in a map by dividing the
data into equal ranges, and to do that I am using this code:
using System;
using…
0
votes
1 answer
MapBasic - Convert Excel date to MapInfo date
If I have a table of Excel dates:
Date
-------
44197
44202
44272
44270
44241
44201
44206
How do I convert this into the MapInfo date format?
Date
20210101
20210106
20210317
20210315
20210214
20210105
20210110
Using MapBasic.

Sancarn
- 2,575
- 20
- 45
0
votes
1 answer
Is there a way tor apply a random color to change the style of the selected points to that color
So I have a random color function that I want to apply to a selection of points but it gives me a random color for each point rather one random color for the selection of points.I know the selecting part works but I'm not sure how to make it call…

Tanner
- 3
- 1
0
votes
1 answer
Integrating MapBasic with .NET Problem with TextBox Controls
I'm trying to integrate Map-Basic with .NET
The final goal is to get an app capable to set address numbers to segment in a friendly and automated way
The problem I having is that TextBoxes in the .NET form are not responsive at all. They don't even…

mdev
- 472
- 7
- 18
0
votes
1 answer
Error in SQL query in mapbasic
I am writing the query below in MapBasic to insert columns from two tables t1 and t2 into table Sites, but I receive an error that the variable or field t2.CELLID not defined.
Table Sites (Source integer, N integer, LAT float, LONG float) Select…

user514348
- 51
- 2
- 10
0
votes
1 answer
How to get placemark info from static kml
I want to get information from static kml file or mapinfo tab file i.e I have a kml/mapinfo tab file that i open on google earth/mapinfo and it shows multiple placemarks but i want to get coordinates of all the placemarks that lie within 1km circle…

user514348
- 51
- 2
- 10
0
votes
2 answers
Opening a URL in windows explorer without COM Object
The problem
I'm trying to open a URL in internet explorer. Regularly I would use the Navigate method of the Internet Explorer com object. However that isn't available in the programming language I am using (MapBasic).
My next method would be to use…

Sancarn
- 2,575
- 20
- 45
0
votes
1 answer
How to read GPS XML file on Map Basic?
I want to write a program which reads XML file on below.
-
-

Kurtarma Hesabı
- 13
- 1
0
votes
1 answer
mapbasic code to create 10 points in a single long/lat without overlapping to each other
Good day! I know how to create a points in a mapbasic having a single long/lat, but i wanted to create 10 points on a single coordinates without overlapping to each other but separated by about 5m radius apart from the given coordinates.
Any idea…

Ivan
- 1
- 3
0
votes
2 answers
MapBasic connection Points to Regions in Map
I'm new to MapBasic, and it is really hard to find tutorials, so here the Question:
I have a map with Regions( every Region has a different attribute ) and i have a List of Points (x-y karthesian koordinates). I managed to read in this Tables (found…

Michael
- 25
- 8
-1
votes
1 answer
calculate length of line in mapbasic
I'm working on a MapBasic code and I have a problem. I wrote a code that calculates the length of the line that the user clicked on. my program calculates the length of the line. The program I write separately writes the start and end points of the…

emre
- 9