Questions tagged [mapbasic]

MapBasic is a programming language for the creation of additional tools and functionality for MapInfo Pro Desktop GIS

Filter by
Sorted by
Tagged with
2
votes
1answer
538 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
4
votes
1answer
1k views

How can I change region style in MapBasic

I've problem with my code in MapBasic for change region style in MapBasic. I've created voronoi and I want to select that voronoi and change the style of it to yellow border and no fill. I already ...
3
votes
1answer
7k 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 ...
9
votes
4answers
13k 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.
4
votes
2answers
498 views

How to write an equivalent to MapBasic's CreateLine in pyQGIS?

I know this kind of question has been asked, in part, before - specifically: Seeing QGIS Python Commands and: How is object created as line using createline stored in .tab file? but this is a specific ...
4
votes
2answers
722 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. ...
3
votes
3answers
2k views

Definitions and limitations of MapInfo TAB file objects

I am working on a MapInfo plugin to convert MapInfo files to GeoJSON files. I am having trouble matching up the object types of the two formats. Each GeoJSON object type is described in the ...
2
votes
2answers
2k views

Split polyline where it intersects with other lines in MapInfo

I have a polyline (bus route) which I want to split where it intersects with other lines (not polylines) I have created. I'm happy to initially do it manually to see how it works, although I would ...
1
vote
2answers
326 views

mapbasic convert raster to mrr

I'd like to convert a whole folder of files from GRD to MRR. Is this possible in mapbasic or from the interface or do I need to do them file by file? I have tried to searching in the mapbasic forums ...
2
votes
1answer
6k 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 10....
1
vote
1answer
2k views

How to loop through all columns in a table/layer getting all data for a row/feature in MapBasic?

I'm trying to extend this GNU-licensed plugin MI2SVG, which converts MapInfo maps to SVG, so that it writes associated table data into the SVG it creates, so that browser based JS web applications can ...
1
vote
0answers
163 views

Avoiding divide by zero in MapBasic?

In select statement how to avoid divide by zero in MapBasic: select (col1/col2) "result" If col2 is 0 it returns null. How to use ISNULL or something in mapbasic?
1
vote
1answer
796 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 ...
1
vote
1answer
993 views

How to close all layers in Mapinfo?

I want to close all layers in Mapinfo except one and again add one layer. How to do so in Mapinfo using Mapbasic or without?
0
votes
1answer
2k views

Removing non-alphanumeric characters from string in MapBasic?

I have a user-entered string which I am using as a search term. I would like to display the results in a table named "SearchResults_"+SearchString. However the string could feasibly contain characters ...
0
votes
1answer
1k views

How to work with tables in MapBasic?

I try to get data from table use MapBasic: Dim nCol = "ColumnName" Fetch First From Untitled Do While Not EOT(Untitled) colValue = Selection.nCol Note colValue Fetch Next From Untitled Loop ...
0
votes
2answers
3k views

How is object created as line using createline stored in .tab file?

I used Mapbasic and made data imported from excel into mappable and added projection to WGS 84 and updated table using: update TABLE set obj = createline(x1,y1,x2,y2) to create line and the line ...
0
votes
2answers
1k 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
975 views

Avoid MapBasic crash when unable to open file

I'm working on some MapBasic code and in the process I want it to open the .tab files in a given folder. But when it reaches a .tab file that it is not able to open (e.g. attached to a raster that ...
-1
votes
1answer
342 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 = ...