You are on page 1of 9

Create Site Sector

Jakarta, 22 Nov 2014

Agenda
1.
2.
3.
4.

Create site with createPoint


Create sector with createLine
Create sector with rotated Symbol
Create sector with polygon (region)

Create Site with CreatePoint


Open
Table

Open table from text file or tab file


Table should content Longitude and Latitude
information with float format
Create object with function createPoint(Longitude,
Latitude)

Create Point

Display on
Map

Sample : update gsite set obj = createpoint(Longitude,


Latitude)

Add map layer


Set map layer label

Create Sector with CreateLine


Open
Table

Open table from text file or tab file


Table should content Longitude, Latitude and azimuth
information with number format

Create object with function createLine(x1, y1, x2, y2)


(x1, y1) is site coordinate and (x2, y2) is end point line that
Create Line can show correct azimuth of the sector on map
North
x2, y2
Display on
Map

Add map layer

= azimuth
r = radius of sector on map x1, y1

x2 = x1 + r sin()

y2 = y1 + r cos()

Create Sector with Rotated Symbol


Some symbol in mapInfo have
rotation angle information. This
rotation angle can be used as sector
azimuth
Rotation angle on MapInfo is counter
clockwise rotation. So to get azimuth
value (clockwise rotation) the symbol
should be rotated into 360 - azimuth
Sample :
Symbol (33,65280,14,"MapInfo Miscellaneous",32,270)

symbol

color

size

Effect drop
shadow

Rotation angle

Create Sector with Rotated Symbol


Open Table

Fetch First from


the Table

Create point with


rotation angle
Next Cell
End of
Table ?

Finish

Now we create point per cell uniquely


using create point statement (not
createpoint function)
To do this we need looping to each row
in the table and create specific point per
row with long, lat and azimuth information

Create Sector with Region


Open Table

Fetch First from


the Table

Create region
with azimuth info
Next Cell
End of
Table ?

Finish

The last method is similar to the third


one, its need looping to each row and
create region for each of them instead of
point.
Region can be drawn as piece of circle
with azimuth information

Create Sector with Region


North
x2, y2

= azimuth
r = radius of sector on map x1, y1

y2 = y1 + r cos()

x2 = x1 + r sin()

To create piece of circle we need to


create region with some nodes that have
the same radius to each center
The main lobe is set as cell azimuth

x2, y2
x3, y3

North
r

x4, y4
BW/2

x5, y5
BW/2

x1, y1

x6, y6

Thank You

You might also like