MapBasic is a programming language for creation of additional tools and functionality for the MapInfo geographical information system.

learn more… | top users | synonyms

2
votes
1answer
29 views

Interpolation code with Mapbasic

I have a drivetest data, and usually I do an interpolation using the values taken in the drive with their respective lat/long. I use natural neighbor. You can see an example attached. I am trying ...
0
votes
0answers
23 views

How do you reference a .TAB file linked to a spatial database within your workspace?

I have created a spatial database in SQL Server. I then created a MapInfo .TAB file that links directly to that spatial database table and I can view it inside MapInfo Professional without any issue. ...
2
votes
2answers
100 views

Does mapbasic support function overloading?

I am creating application with mapbasic. Now that it's been some time with mapbasic I found that the language is very fundamental and does not support functionality that I took for granted in Java or ...
1
vote
1answer
100 views

MapInfo / Mapbasic: simple compile of table from six source tables

I have a project which I am reviving after a gap of some years. It involves several hundred runs within MapInfo, scripted in MapBasic. I am stuck at a point that is so simple, it's driving me nuts. ...
-1
votes
1answer
42 views

Same Sector Created in Mapinfo Help

The PRACH data is saved into a tab and then moved into another tab file "ToUpdate" Select * from PRACH_data where Obj into ToUpdate Fetch First From ToUpdate Do While Not EOT(ToUpdate) circ = ...
1
vote
1answer
26 views

How do I make a thematic layer 50% translucent in MapBasic?

I'm trying to make this enhancement to an old program written by another author. I was able to make the layer translucent prior to Shade Window command, but its not working. Here is the code: Add Map ...
1
vote
1answer
152 views

Handler tool in MapBasic

Have any handler or procedure, that call automatic when the click or unclick menu item or button? Similiar SelChangedHandler.
0
votes
1answer
44 views

Draw lines from points to points not by lon/lat in mapbasic

How to draw lines from points to points not by lon/lat What I need is a cross connection with cable like the image below: I have N input and M output points Any idea will be appreciated highly.
0
votes
1answer
25 views

MapBasic tool not compiling due to undefined variable

I am attempting to compile a quick MapBasic tool I have written, however it won't compile despite the variable being clearly defined It's probably something simple I am missing, can somebody point ...
0
votes
1answer
42 views

PRACH all counters plot not well visualized

Here's the output that Im getting: Im not sure why it is doing this.. I want it to be more like this When i try plotting only two counters (two radii): It is giving me this: I hope it is ...
0
votes
0answers
37 views

PRACH data plotted in a better way but not completely

I am close to finishing the visualization of PRACH in mapinfo. Here's my output so far (for 4 counters) Unfortunately, for some sectors it is not working as it should be. Can you please help out? ...
0
votes
0answers
30 views

PRACH data mapped right but arcs not on top properly

PRACH data is mapped right. However, how would it be possible to draw the arcs on top of each other for all the 21 PRACH counters? Here's a snapshot of the code: Fetch First From ToUpdate Do While ...
0
votes
1answer
51 views

Create Sector PRACH in Mapinfo

I am trying to write a code that creates the PRACH per sector per band for a site. My PRACH data contains: "Site name, lat, long, beamwidth, azimuth, and distance" I got to the point of creating ...
0
votes
0answers
26 views

Find Crossovers for multiple contours drawn over a lake

I am new to MapBasic and wanting to help out with this problem. I have some ideas on what the algorithm might be to start this problem but I have never written anything in MapBasic. I do have some ...
0
votes
2answers
164 views

Drawing BTS sectors in GSM?

I'm very new to Mapbasic. I tried to make a short code to draw some BTS in GSM but I can't do thant (over 1 month). I have a table with these column: Sitename, Lon, Lat, Azi, Beam, Dist. Can ...
0
votes
2answers
226 views

Updating a column with line direction in MapInfo

I was wondering if there is a way to update a column in MapInfo with the digitised line direction. I have two TAB files, one is complete lines and the other is sections of the same lines (both have a ...
1
vote
1answer
3k views

How to connect points to line in Mapinfo?

I am using Mapinfo and Mapbasic. I have all the points stored in a DBMS. I have four columns with four points longitude and latitude. Is there any way to connect the points? I am using Mapinfo ...
2
votes
1answer
4k views

Creating polygons from points in Mapinfo

I have a huge number of points(co-ordinates), from which I am required to draw a polygon in Mapinfo. This required polygon is a square of 200m size. All I have now is the left side lower end of the ...
1
vote
1answer
83 views

Transform coordinates in MapInfo with GSB data

Does anybody know if MapInfo (or MapBasic) is capable to do coordinate transformation using the NTv2 (National Transformation version 2) method? Currently Switzerland changes their national ...
0
votes
1answer
224 views

How to Create site cells sectors in MapBasic for over 1000 records

I am new to mapbasic and i need to learn to create the cells of a site in MapInfo using the Mapbasic if any one can help me thanks in advance i Used the bellow script i found in the Web, and it was ...
-3
votes
1answer
58 views

edit text style object in mapbasic

I have created a text object, but then I want to change this object (front and size, ....). Example: I have created a text object is "Memory" the front is "news Roman Times" and the size is 12. I ...
1
vote
1answer
60 views

The command to open multiple tables in MapBasic

I would like to know what commands/statement can open (or select) multiple tables in MapBasic?. Please show me? Thanks
1
vote
1answer
52 views

Adding nodes to a line by interval in MapInfo

I am a MapBasic beginner, and I just want a simple .mbx or tool that can add nodes to a line by interval (say every 50m). I don't really need it to have a start point or end point (or maybe it is ...
0
votes
1answer
117 views

In Mapbasic, How to populate my table row data in a dialog box with RadioGroup and EditText

Good day! Im trying to pupulate my table row data in a dialog box with Radiogroup and editText control. I successfully get the column value list from popupMenu control after selecting the table and ...
0
votes
1answer
75 views

Creating an annulus sector with mapbasic

Knowing the center of rotation, start and end angles, inner an outer radius, how can this be achieved with MapBasic
2
votes
1answer
97 views

Custom range value and colour thematic in mapbasic

I'm working on a tool to help my work. I managed to make a thematic, but the range of values and colors appear automatically. Here is the code: Dim fRangeLimitsArray() As Float Dim ...
0
votes
0answers
28 views

How to attach a counter to a mapbasic program in order to account for its usage?

At the beginning, I thought of using this simple counter...but it will initialize each time the program is run... So, I was wondering if there wasn't any application I could attach to mapbasic in ...
1
vote
2answers
98 views

Trying to completely Exit from the Mapinfo application?

I tried the following two things: include "mapbasic.def" Declare Sub Main Declare Sub Exit Sub Main() If WindowInfo(WIN_MAPBASIC, WIN_INFO_OPEN) then Close Window WIN_MAPBASIC ...
4
votes
2answers
387 views

How do I snip/split polylines at chainages?

What is the best way to snip/split lines at chainages? E.g I have a csv with the uniq ID of the polyline item and a start and end chainage. I want to extract the lines between the chainages stated. ...
0
votes
3answers
99 views

How to create a stable user Interface in Mapbasic?

I am trying to have a user enter values via an interface and continue to run the program but the following line (Select...) fail to work most of the time as part of the program (although it works fine ...
2
votes
1answer
362 views

MapBasic sentence to update column contained in an object table

I was looking for a MapBasic sentence to update a MapInfo table. I've got two tables and I want to update one of them (POINTS) with an attribute of another (REGIONS). I would like to update points ...
2
votes
1answer
114 views

Expression does not evaluate to column or table name?

This is my code: Include "MAPBASIC.DEF" Include "MENU.DEF" Dim s_filename As String s_filename = FileOpenDlg("","","TAB"," Open Table Interactive") Browse * From s_filename I want to open a ...
0
votes
1answer
67 views

Accessibility to developer of “Alter” and similar constructs in MapInfo MapBasic

Parts of the MapInfo MapBasic API are accessed as follows: Alter ButtonPad "Main" Add ToolButton ID 101 Icon 8 Calling OnToolClicked HelpMsg ...
1
vote
0answers
49 views

Changing object/point to custom symbol based on a specific name in MapInfo, using MapBasic

First, I must clarify I am green when it comes to programming and Basic. I only started trying to use MapBasic and have reviewed a few sites and their reference guide to get an idea of what I can do ...
0
votes
1answer
59 views

How to pass a variable (FilesToAdd) from VBA script (interface) to a Mapbasic program?

Option Explicit Public FilesToAdd As Integer Private Sub TEST_Click() FilesToAdd = 1 Dim b As Variant Dim Prog As String Dim File As String Prog = "C:\Program ...
4
votes
1answer
93 views

What are some GIS outlets for my open source MapBasic utility module and library?

I'm actively developing a MapBasic module that provides additional MBX programming functionality by wrapping .NET 4.0 and Win32 API calls in easy to use MapBasic functions and subs. MB_Utils acts as ...
1
vote
1answer
52 views

Dialog Table Name Prompt Error In MapBasic_Mapbasic

I am trying to prompt the Table name from the opened tables and to use it in the rest of the program, but what i get is (Table (i) is not open) after clicking ok the Sub Procedure is below, please ...
1
vote
1answer
118 views

Run the Sub procedure by selecting an object from the map

In Mapbasic made custom menu selected item to run sub procedure, what i want to make the Sub procedure to be ready to run by selecting an object from the map and run again by selecting another ...
5
votes
3answers
6k views

Getting Started with MapBasic?

I am new to MapBasic. I googled for tutorials and found various PDFs but could not get started with the resources. I would be glad if anyone could provide some path for learning MapBasic.
0
votes
1answer
98 views

error message: “Cannot split, erase or overlay with points, collection, Text or layout frame objects” in Mapbasic

In order to automate procedures using MapBasic, I wrote the code for overlapping two objects -- one a polygon object and the other a point object -- using Objects Intersect statement written below. ...
0
votes
2answers
104 views

mapbasic, create polygon, insert node

Hi I try to create a parsel table from coordinates. My scripts are below. Why it does not show the results on the map? Thank you in advance! Create Table "parsel" (Parsel_Adi Char(10)) file ...
0
votes
1answer
225 views

How to write to Sql server from MapBasic and insert rows

I have created a table in Sql server 2014 with the columns: Id (int), Geom (geometry), RouteId (int), Desc (varchar(MAX)) I have succeeded in making the table mappable through MapInfo I have checked ...
0
votes
0answers
30 views

Is it possible to export MapJ object into TAB file in MapXtreme?

I am trying to open a TAB file having geometry information and bind/join it with JDBC Table having attribute information. Now I have to export the joined table along with map/geometry information from ...
0
votes
0answers
97 views

finding length of a custom type array in mapbasic

Hello I am just getting started with MapBasic and I have run in to some trouble trying to count the items in a custom type i have tried accomplishing this by running a loop until an error occur. ...
0
votes
1answer
216 views

How to create a array variable containing the values of another variable in a table?

I am new to mapbasic and would like to have an array variable (sac) in order to access it through the "For variable = 1 To n" function. I would like to create a loop that only takes on the value of a ...
0
votes
0answers
147 views

Check for extraneous bytes that appear before %PDF at the head of a MapInfo printed PDF file?

I am using a MapBasic program that automatically prints individual PDF maps of each polygon in my table. After getting an Adobe Reader XI update, the PDFs no longer open. I receive the following ...
0
votes
0answers
105 views

How to code for Thematic map in Mapbasic?

I would like to write code for creating a thematic map. The GUI command in Mapbasic window shows many lines in order to set up the different colours which will be used on the different polygons ...
1
vote
0answers
94 views

Unable to copy text out of MapInfo 12 info tool

As the title says, I'm currently unable to copy and paste information out of the info tool box. Is there a way that this can be done normally or do I need to write a new tool/ is there a tool out ...
0
votes
1answer
156 views

MapBasic For Loop ignoring every other row

I have made a loop in MapBasic but is it only updating every other row in the table: My code works from the bottom of the table upwards to generate start and end coordinates for polyline features: ...
0
votes
1answer
211 views

Creating points based on coordinates in MapBasic

I am currently working on a MapBasic tool that generates start and end coordinates for a polyline layer. So far I have successfully populated 4 columns in a table (SX, EX, SY, EX) with coordinates of ...