- Messages
- 203
- Country
I'm trying to generate the autogen tile grid as per section 5.8 of the manual, using script:
CreateRectangle|Kirkwall
#
SplitGrid|AGN|*
PolygonToPoint|*|CENTER|0.0;0.0|0.0;0.0|String;obj|center|hdg
AddAttribute|FTYPE="POINT"|String;name|TILELOD
#
MergeGrid
#
ExportOGR|*|KML|grid.kml|grid
This is the same script as in the manual but with the area changed. I am getting the error "CreateRectangle requires 3 arguments, but the function as described in the manual doesn't show this?
9.2.12 CreateRectangle
Purpose
Create a new rectangle polygon from a given bounding box or geographic name.
Arguments
1. The bounding box of the rectangle (minlon;maxlon;minlat;maxlat) or the name of the geographic
region that the bounding box should be searched for online using OpenStreetMap.
Example
Create a rectangle between N51 E5 and N52 E6:
CreateRectangle|5;6;51;52
Create a rectangle around the island of Texel in the Netherlands:
CreateRectangle|Texel
What am I doing wrong? :S Thanks K
CreateRectangle|Kirkwall
#
SplitGrid|AGN|*
PolygonToPoint|*|CENTER|0.0;0.0|0.0;0.0|String;obj|center|hdg
AddAttribute|FTYPE="POINT"|String;name|TILELOD
#
MergeGrid
#
ExportOGR|*|KML|grid.kml|grid
This is the same script as in the manual but with the area changed. I am getting the error "CreateRectangle requires 3 arguments, but the function as described in the manual doesn't show this?
9.2.12 CreateRectangle
Purpose
Create a new rectangle polygon from a given bounding box or geographic name.
Arguments
1. The bounding box of the rectangle (minlon;maxlon;minlat;maxlat) or the name of the geographic
region that the bounding box should be searched for online using OpenStreetMap.
Example
Create a rectangle between N51 E5 and N52 E6:
CreateRectangle|5;6;51;52
Create a rectangle around the island of Texel in the Netherlands:
CreateRectangle|Texel
What am I doing wrong? :S Thanks K