Tag Info

Hot answers tagged

3

You can use LayerInfo to get from a layer name to the matching layer number and vice versa. Use LAYER_INFO_NUM and LAYER_INFO_NAME. Also note that you can use a layer number to change the styling of a layer. You don't need the name. The layer number is unique where you can have multiple layers with the same name (if you have a table in the map multiple ...


2

Maybe you mixed lat (y) and lon (x)? For London: Latitude (y) : 51.5085300 Longitude (x): -0.1257400


2

You don't specify exactly where your tool get slow, but I have a few suggestions to improve the speed. Create the index on your table after you have inserted the data, not before With SQL Select statements always select into a named query and use the NoSelect keyword Add your table to the map after you have created your voronois regions. Use the Update ...


2

To expand on the first point made by Andrew Tice - MapInfo has an object thinning function to remove nodes within a certain tolerance of each other. You can access it through Objects > Snap/Thin... to generalise your vector data. In addition to removing any redundant data fields, you may want to also look at field types. For example, character fields have ...


2

Depending what you mean by "integrity", there are a couple of things you could consider: Generalise the vector component to reduce the number of nodes - there is a tool HERE which you could use. Or you could try converting the file into Esri Shape (using Universal Translator) and using the generalisation approaches in mapshaper and translate back into Tab ...


2

Yes, you need to store the name of the selection table and reference it by name rather than using the special name 'Selection'. You can get the selection table's name using SelectionInfo(SEL_INFO_SELNAME). Once you've got that, you'll need to use Alias variables to reference the fields of that table. Also, you need to make sure that you use Fetch to retrieve ...


2

There's no For Each in MapBasic unfortunately. A selection in MapInfo is effectively a table, so what you want to do is loop through the Selection table. The best way to do that is by using Do...Loop and Fetch. Something like this should work: Dim alBlockID as Alias Dim selectionName, selTableName as String Dim selCount, i_blockId as Integer selectionName ...


1

I'm assuming that you want to erase the portions of the voronoi polygons generated from the sensus data that extent beyond its limits. If you create a convex hull object from the sensus point data (using Create Object), then that would form a boundary polygon that would limit the extent of the voronoi polygons produced at the edges of the sensus dataset. ...


1

Let me expand on my previous answer to show how to get the value from the EDITTEXT control. First create your dialog box using a dialog statement like below. Dim inputText as String Dialog Control STATICTEXT ID 1 Title "Enter a valid number:" Control EDITTEXT ID 2 Into inputText Control OKBUTTON ID 3 ...


1

When I asked Pitney Bowes support this question, I heard the following (same as Peter's response, essentially). "This issue is working as designed as there is no equivalent type to what MIPro uses for an Integer in dBase IV, so these fields are getting mapped to Numeric (Decimal) or Float types. Unfortunately there is no work around for this at this time."


1

Apparently the ESRI Shape format doesn't support SmallInt and Integer. Shape does not support small integer (16bit) or integer (32bit) data types. Instead, it supports a number(x,y) data type. The equivalent data types are: smallint (16bit): number(6,0) integer (32bit): number(11,0) FME Shape Reader/Writer documentation So the answer ...



Only top voted, non community-wiki answers of a minimum length are eligible