Check if the layer is georeferenced. Pass NIL to check the document.
FUNCTION IsGeoreferenced(hLayer : HANDLE): BOOLEAN;def vs.IsGeoreferenced(hLayer):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| hLayer | HANDLE | Pass NIL for Vectorscript and None for Python if you want to manage the document. |
PROCEDURE Test;
var
isGeoref: BOOLEAN;
BEGIN
RemoveGeoref(NIL);
isGeoref := IsGeoreferenced(NIL);
if (isGeoref) then
AlrtDialog('The file is georeferenced.')
else
AlrtDialog('The file is not georeferenced.');
end;
run(Test);vs.RemoveGeoref(None)
isGeoref = vs.IsGeoreferenced(None)
if isGeoref:
vs.AlrtDialog('The file is georeferenced.')
else:
vs.AlrtDialog('The file is not georeferenced.')Availability: from Vectorworks 2012