VS:RemoveGeoref
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Remove the georeferencing settings for a given layer handle, or for the document if NIL is provided.
PROCEDURE RemoveGeoref(
hLayer :HANDLE);
def vs.RemoveGeoref(hLayer): return None
Parameters
hLayer HANDLE Pass NIL for Vectorscript and None for Python if you want to manage the document.
Example
VectorScript
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);
Python
vs.RemoveGeoref(None) isGeoref = vs.IsGeoreferenced(None) if isGeoref: vs.AlrtDialog('The file is georeferenced.') else: vs.AlrtDialog('The file is not georeferenced.')
Version
Availability: from Vectorworks 2023.3