參數: file_h(一個Python file
對象或文件的字符串路徑) - 包含空間數據的輸入文件返回類型: 文件中空間數據對應的 GEOSGeometry
例子:
>>> from django.contrib.gis.geos import fromfile >>> g = fromfile('/home/bob/geom.wkt')
本文介紹 django.contrib.gis.geos.fromfile
的用法。
聲明
fromfile(file_h)
相關用法
- Python dict fromkeys()用法及代碼示例
- Python Django from_queryset用法及代碼示例
- Python Django fromstr用法及代碼示例
- Python frozenset()用法及代碼示例
- Python frexp()用法及代碼示例
- Python fractions.Fraction用法及代碼示例
- Python fractions.Fraction.limit_denominator用法及代碼示例
- Python fractions.Fraction.__floor__用法及代碼示例
- Python functools.wraps用法及代碼示例
- Python functools.singledispatchmethod用法及代碼示例
- Python float轉exponential用法及代碼示例
- Python calendar firstweekday()用法及代碼示例
- Python float.is_integer用法及代碼示例
- Python Django format_lazy用法及代碼示例
- Python format()用法及代碼示例
- Python filecmp.cmpfiles()用法及代碼示例
- Python functools.singledispatch用法及代碼示例
- Python fileinput.filelineno()用法及代碼示例
- Python fileinput.lineno()用法及代碼示例
- Python fileinput.input用法及代碼示例
- Python functools.partial用法及代碼示例
- Python functools.partialmethod用法及代碼示例
- Python fnmatch.fnmatch用法及代碼示例
- Python calendar formatmonth()用法及代碼示例
注:本文由純淨天空篩選整理自djangoproject.com大神的英文原創作品 django.contrib.gis.geos.fromfile。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。