aspose-gis-net 25.7.0__py3-none-manylinux1_x86_64.whl → 25.9.0__py3-none-manylinux1_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of aspose-gis-net might be problematic. Click here for more details.

Files changed (115) hide show
  1. aspose/assemblies/gis/Aspose.GIS.dll +0 -0
  2. aspose/assemblies/gis/Microsoft.Data.Sqlite.dll +0 -0
  3. aspose/assemblies/gis/SQLitePCLRaw.batteries_v2.dll +0 -0
  4. aspose/assemblies/gis/SQLitePCLRaw.core.dll +0 -0
  5. aspose/assemblies/gis/SQLitePCLRaw.provider.e_sqlite3.dll +0 -0
  6. aspose/assemblies/gis/WrpInterop.Aspose.Gis.dll +0 -0
  7. aspose/assemblies/gis/libe_sqlite3.so +0 -0
  8. aspose/gis/__init__.pyi +6 -2697
  9. aspose/gis.cpython-310-x86_64-linux-gnu.so +0 -0
  10. aspose/gis.cpython-311-x86_64-linux-gnu.so +0 -0
  11. aspose/gis.cpython-312-x86_64-linux-gnu.so +0 -0
  12. aspose/gis.cpython-313-x86_64-linux-gnu.so +0 -0
  13. aspose/gis.cpython-35m-x86_64-linux-gnu.so +0 -0
  14. aspose/gis.cpython-36m-x86_64-linux-gnu.so +0 -0
  15. aspose/gis.cpython-37m-x86_64-linux-gnu.so +0 -0
  16. aspose/gis.cpython-38-x86_64-linux-gnu.so +0 -0
  17. aspose/gis.cpython-39-x86_64-linux-gnu.so +0 -0
  18. aspose/pycore/__init__.pyi +55 -56
  19. aspose/pydrawing/__init__.pyi +7 -4089
  20. aspose/pyreflection/__init__.pyi +7 -11
  21. {aspose_gis_net-25.7.0.dist-info → aspose_gis_net-25.9.0.dist-info}/METADATA +6 -3
  22. {aspose_gis_net-25.7.0.dist-info → aspose_gis_net-25.9.0.dist-info}/RECORD +21 -109
  23. .__pyi_patched +0 -0
  24. aspose/gis/common/__init__.pyi +0 -1028
  25. aspose/gis/common/formats/__init__.pyi +0 -98
  26. aspose/gis/common/formats/dbase/__init__.pyi +0 -250
  27. aspose/gis/common/formats/gdbtable/__init__.pyi +0 -1022
  28. aspose/gis/common/formats/mapinfo/__init__.pyi +0 -347
  29. aspose/gis/common/formats/mapinfo/graphicalobjects/__init__.pyi +0 -662
  30. aspose/gis/common/formats/mapinfo/interchangeformat/__init__.pyi +0 -217
  31. aspose/gis/common/formats/mapinfo/styling/__init__.pyi +0 -163
  32. aspose/gis/common/formats/mapinfo/tabformat/__init__.pyi +0 -143
  33. aspose/gis/common/formats/mapinfo/tabformat/map/__init__.pyi +0 -430
  34. aspose/gis/common/formats/wkb/__init__.pyi +0 -120
  35. aspose/gis/common/formats/wkt/__init__.pyi +0 -420
  36. aspose/gis/common/formats/xml/__init__.pyi +0 -173
  37. aspose/gis/common/io/__init__.pyi +0 -290
  38. aspose/gis/epsg/__init__.pyi +0 -357
  39. aspose/gis/formats/__init__.pyi +0 -91
  40. aspose/gis/formats/bmpw/__init__.pyi +0 -134
  41. aspose/gis/formats/csv/__init__.pyi +0 -608
  42. aspose/gis/formats/database/__init__.pyi +0 -173
  43. aspose/gis/formats/database/dataediting/__init__.pyi +0 -105
  44. aspose/gis/formats/database/fromdefinition/__init__.pyi +0 -141
  45. aspose/gis/formats/esriascii/__init__.pyi +0 -292
  46. aspose/gis/formats/esrijson/__init__.pyi +0 -512
  47. aspose/gis/formats/filegdb/__init__.pyi +0 -722
  48. aspose/gis/formats/gdal/__init__.pyi +0 -478
  49. aspose/gis/formats/geojson/__init__.pyi +0 -620
  50. aspose/gis/formats/geojsonseq/__init__.pyi +0 -572
  51. aspose/gis/formats/geotiff/__init__.pyi +0 -292
  52. aspose/gis/formats/gml/__init__.pyi +0 -574
  53. aspose/gis/formats/gpx/__init__.pyi +0 -543
  54. aspose/gis/formats/infile/__init__.pyi +0 -582
  55. aspose/gis/formats/inmemory/__init__.pyi +0 -337
  56. aspose/gis/formats/jpegw/__init__.pyi +0 -134
  57. aspose/gis/formats/kml/__init__.pyi +0 -556
  58. aspose/gis/formats/kml/styles/__init__.pyi +0 -636
  59. aspose/gis/formats/mapinfointerchange/__init__.pyi +0 -531
  60. aspose/gis/formats/mapinfotab/__init__.pyi +0 -530
  61. aspose/gis/formats/osmxml/__init__.pyi +0 -543
  62. aspose/gis/formats/pngw/__init__.pyi +0 -134
  63. aspose/gis/formats/postgis/__init__.pyi +0 -262
  64. aspose/gis/formats/shapefile/__init__.pyi +0 -511
  65. aspose/gis/formats/sqlserver/__init__.pyi +0 -248
  66. aspose/gis/formats/tiffw/__init__.pyi +0 -134
  67. aspose/gis/formats/topojson/__init__.pyi +0 -596
  68. aspose/gis/formats/worldfile/__init__.pyi +0 -134
  69. aspose/gis/formats/xyztile/__init__.pyi +0 -155
  70. aspose/gis/geometries/__init__.pyi +0 -15970
  71. aspose/gis/geotools/__init__.pyi +0 -546
  72. aspose/gis/geotools/extensions/__init__.pyi +0 -107
  73. aspose/gis/geotools/layersmap/__init__.pyi +0 -311
  74. aspose/gis/geotools/mapbuilder/__init__.pyi +0 -141
  75. aspose/gis/geotools/wayanalyzer/__init__.pyi +0 -187
  76. aspose/gis/imagemetadata/__init__.pyi +0 -297
  77. aspose/gis/indexing/__init__.pyi +0 -103
  78. aspose/gis/indexing/bplustree/__init__.pyi +0 -118
  79. aspose/gis/indexing/qixtree/__init__.pyi +0 -121
  80. aspose/gis/indexing/rtree/__init__.pyi +0 -153
  81. aspose/gis/labeling/__init__.pyi +0 -235
  82. aspose/gis/labeling/line/__init__.pyi +0 -279
  83. aspose/gis/painting/__init__.pyi +0 -790
  84. aspose/gis/projections/__init__.pyi +0 -272
  85. aspose/gis/py.typed +0 -0
  86. aspose/gis/raster/__init__.pyi +0 -586
  87. aspose/gis/raster/web/__init__.pyi +0 -127
  88. aspose/gis/relationship/__init__.pyi +0 -91
  89. aspose/gis/relationship/joins/__init__.pyi +0 -161
  90. aspose/gis/rendering/__init__.pyi +0 -572
  91. aspose/gis/rendering/colorizers/__init__.pyi +0 -202
  92. aspose/gis/rendering/formats/__init__.pyi +0 -91
  93. aspose/gis/rendering/formats/bmp/__init__.pyi +0 -111
  94. aspose/gis/rendering/formats/jpeg/__init__.pyi +0 -111
  95. aspose/gis/rendering/formats/png/__init__.pyi +0 -111
  96. aspose/gis/rendering/formats/svg/__init__.pyi +0 -111
  97. aspose/gis/rendering/labelings/__init__.pyi +0 -416
  98. aspose/gis/rendering/sld/__init__.pyi +0 -109
  99. aspose/gis/rendering/symbolizers/__init__.pyi +0 -882
  100. aspose/gis/spatialreferencing/__init__.pyi +0 -3005
  101. aspose/gis/topology/__init__.pyi +0 -342
  102. aspose/gis/topology/algorithms/__init__.pyi +0 -98
  103. aspose/gis/topology/buffer/__init__.pyi +0 -214
  104. aspose/gis/topology/graph/__init__.pyi +0 -338
  105. aspose/pycore/py.typed +0 -0
  106. aspose/pydrawing/design.pyi +0 -24
  107. aspose/pydrawing/drawing2d.pyi +0 -1324
  108. aspose/pydrawing/imaging.pyi +0 -1988
  109. aspose/pydrawing/printing.pyi +0 -995
  110. aspose/pydrawing/py.typed +0 -0
  111. aspose/pydrawing/text.pyi +0 -75
  112. aspose/pyreflection/py.typed +0 -0
  113. {aspose_gis_net-25.7.0.dist-info → aspose_gis_net-25.9.0.dist-info}/WHEEL +0 -0
  114. {aspose_gis_net-25.7.0.dist-info → aspose_gis_net-25.9.0.dist-info}/entry_points.txt +0 -0
  115. {aspose_gis_net-25.7.0.dist-info → aspose_gis_net-25.9.0.dist-info}/top_level.txt +0 -0
aspose/gis/__init__.pyi CHANGED
@@ -1,2699 +1,8 @@
1
+ """This is a wrapper module for Aspose.GIS .NET assembly"""
1
2
 
2
- from typing import List, Optional, Dict, Iterable, Any, overload
3
- import io
4
- import collections.abc
5
- from collections.abc import Sequence
6
- from datetime import datetime
7
- from aspose.pyreflection import Type
8
- import aspose.pycore
9
- import aspose.pydrawing
10
- from uuid import UUID
11
- import aspose.gis
12
- import aspose.gis.common
13
- import aspose.gis.common.formats
14
- import aspose.gis.common.formats.dbase
15
- import aspose.gis.common.formats.gdbtable
16
- import aspose.gis.common.formats.mapinfo
17
- import aspose.gis.common.formats.mapinfo.graphicalobjects
18
- import aspose.gis.common.formats.mapinfo.interchangeformat
19
- import aspose.gis.common.formats.mapinfo.styling
20
- import aspose.gis.common.formats.mapinfo.tabformat
21
- import aspose.gis.common.formats.mapinfo.tabformat.map
22
- import aspose.gis.common.formats.wkb
23
- import aspose.gis.common.formats.wkt
24
- import aspose.gis.common.formats.xml
25
- import aspose.gis.common.io
26
- import aspose.gis.epsg
27
- import aspose.gis.formats
28
- import aspose.gis.formats.bmpw
29
- import aspose.gis.formats.csv
30
- import aspose.gis.formats.database
31
- import aspose.gis.formats.database.dataediting
32
- import aspose.gis.formats.database.fromdefinition
33
- import aspose.gis.formats.esriascii
34
- import aspose.gis.formats.esrijson
35
- import aspose.gis.formats.filegdb
36
- import aspose.gis.formats.gdal
37
- import aspose.gis.formats.geojson
38
- import aspose.gis.formats.geojsonseq
39
- import aspose.gis.formats.geotiff
40
- import aspose.gis.formats.gml
41
- import aspose.gis.formats.gpx
42
- import aspose.gis.formats.infile
43
- import aspose.gis.formats.inmemory
44
- import aspose.gis.formats.jpegw
45
- import aspose.gis.formats.kml
46
- import aspose.gis.formats.kml.styles
47
- import aspose.gis.formats.mapinfointerchange
48
- import aspose.gis.formats.mapinfotab
49
- import aspose.gis.formats.osmxml
50
- import aspose.gis.formats.pngw
51
- import aspose.gis.formats.postgis
52
- import aspose.gis.formats.shapefile
53
- import aspose.gis.formats.sqlserver
54
- import aspose.gis.formats.tiffw
55
- import aspose.gis.formats.topojson
56
- import aspose.gis.formats.worldfile
57
- import aspose.gis.formats.xyztile
58
- import aspose.gis.geometries
59
- import aspose.gis.geotools
60
- import aspose.gis.geotools.extensions
61
- import aspose.gis.geotools.layersmap
62
- import aspose.gis.geotools.mapbuilder
63
- import aspose.gis.geotools.wayanalyzer
64
- import aspose.gis.imagemetadata
65
- import aspose.gis.indexing
66
- import aspose.gis.indexing.bplustree
67
- import aspose.gis.indexing.qixtree
68
- import aspose.gis.indexing.rtree
69
- import aspose.gis.labeling
70
- import aspose.gis.labeling.line
71
- import aspose.gis.painting
72
- import aspose.gis.projections
73
- import aspose.gis.raster
74
- import aspose.gis.raster.web
75
- import aspose.gis.relationship
76
- import aspose.gis.relationship.joins
77
- import aspose.gis.rendering
78
- import aspose.gis.rendering.colorizers
79
- import aspose.gis.rendering.formats
80
- import aspose.gis.rendering.formats.bmp
81
- import aspose.gis.rendering.formats.jpeg
82
- import aspose.gis.rendering.formats.png
83
- import aspose.gis.rendering.formats.svg
84
- import aspose.gis.rendering.labelings
85
- import aspose.gis.rendering.sld
86
- import aspose.gis.rendering.symbolizers
87
- import aspose.gis.spatialreferencing
88
- import aspose.gis.topology
89
- import aspose.gis.topology.algorithms
90
- import aspose.gis.topology.buffer
91
- import aspose.gis.topology.graph
92
-
93
- class AbstractPath:
94
- '''An ``AbstractPath`` is a base class for classes that specify a unique location in an environment similar to a filesystem,
95
- like a local filesystem, a remote file storage or a ZIP archive, among others.'''
96
-
97
- @staticmethod
98
- def from_local_path(path : str) -> aspose.gis.AbstractPath:
99
- '''Creates an :py:class:`aspose.gis.AbstractPath` that represents a location on the local filesystem.
100
-
101
- :param path: A path on the local filesystem, like ``"C:\\file.shp"`` or ``"D:\\directory\\"``.
102
- :returns: An :py:class:`aspose.gis.AbstractPath` that represents the location defined by the ``path``.'''
103
- raise NotImplementedError()
104
-
105
- @staticmethod
106
- def from_stream(stream : io.RawIOBase) -> aspose.gis.AbstractPath:
107
- '''Creates an :py:class:`aspose.gis.AbstractPath` from a :py:class:`io.RawIOBase`.
108
-
109
- :param stream: A stream to create an :py:class:`aspose.gis.AbstractPath` from. ``Aspose.GIS`` does not dispose the stream.
110
- :returns: An instance of :py:class:`aspose.gis.AbstractPath` with the specified :py:class:`io.RawIOBase` as its content.'''
111
- raise NotImplementedError()
112
-
113
- def is_file(self) -> bool:
114
- '''Gets a value indicating whether this path points to an existing file that can be opened for reading.
115
-
116
- :returns: if location points to a file; otherwise.'''
117
- raise NotImplementedError()
118
-
119
- def delete(self) -> None:
120
- '''Deletes a file pointed to by this path.'''
121
- raise NotImplementedError()
122
-
123
- def open(self, access : System.IO.FileAccess) -> io.RawIOBase:
124
- '''Opens this ``AbstractPath`` as a file.
125
-
126
- :param access: Specifies a subset of operations that can be performed on a :py:class:`io.RawIOBase`.
127
- :returns: A :py:class:`io.RawIOBase` opened with the specified :py:class:`System.IO.FileAccess`.'''
128
- raise NotImplementedError()
129
-
130
- def list_directory(self) -> Iterable[aspose.gis.AbstractPath]:
131
- '''Returns paths located inside this ``AbstractPath``, if it\'s a directory.
132
-
133
- :returns: Paths located inside this ``AbstractPath``.'''
134
- raise NotImplementedError()
135
-
136
- def combine(self, location : str) -> aspose.gis.AbstractPath:
137
- '''Combines this :py:class:`aspose.gis.AbstractPath` with specified path components.
138
-
139
- :param location: A path component to append to this :py:class:`aspose.gis.AbstractPath`.
140
- :returns: A new :py:class:`aspose.gis.AbstractPath` pointing to a :py:attr:`aspose.gis.AbstractPath.location` that is a combination of locations of this :py:class:`aspose.gis.AbstractPath` and
141
- the argument.'''
142
- raise NotImplementedError()
143
-
144
- def with_extension(self, new_extension : str) -> aspose.gis.AbstractPath:
145
- '''Returns a new :py:class:`aspose.gis.AbstractPath` with the file extension changed to the specified value.
146
-
147
- :param new_extension: A new extension.
148
- :returns: A new :py:class:`aspose.gis.AbstractPath`, that points to a file in the same directory, but with a new extension.'''
149
- raise NotImplementedError()
150
-
151
- def get_file_name(self) -> str:
152
- '''Returns the file name and extension of this :py:class:`aspose.gis.AbstractPath`.
153
-
154
- :returns: The characters after the last :py:attr:`aspose.gis.AbstractPath.separator` character in the :py:attr:`aspose.gis.AbstractPath.location`. If the
155
- last character is the :py:attr:`aspose.gis.AbstractPath.separator` character, an empty string is returned. If there is no
156
- :py:attr:`aspose.gis.AbstractPath.separator` characters in the :py:attr:`aspose.gis.AbstractPath.location`, the :py:attr:`aspose.gis.AbstractPath.location` itself
157
- is returned.'''
158
- raise NotImplementedError()
159
-
160
- def get_file_name_without_extension(self) -> str:
161
- '''Returns the file name of this :py:class:`aspose.gis.AbstractPath` without the extension.
162
-
163
- :returns: The string returned by :py:func:`aspose.gis.AbstractPath.get_file_name` minus the last period and all characters following it.'''
164
- raise NotImplementedError()
165
-
166
- def get_extension(self) -> str:
167
- '''Returns the extension of this :py:class:`aspose.gis.AbstractPath`.
168
-
169
- :returns: The extension of this :py:class:`aspose.gis.AbstractPath` (including the period ".") or
170
- an empty string if the :py:class:`aspose.gis.AbstractPath` has no extension.'''
171
- raise NotImplementedError()
172
-
173
- @property
174
- def location(self) -> str:
175
- '''Gets a string representation of the location of this ``AbstractPath``.'''
176
- raise NotImplementedError()
177
-
178
- @property
179
- def separator(self) -> str:
180
- '''Gets a separator character used to separate directory levels of the :py:attr:`aspose.gis.AbstractPath.location` string.'''
181
- raise NotImplementedError()
182
-
183
-
184
- class AttributesConverterActions:
185
- '''Optional actions with attributes of the destination layer.'''
186
-
187
- @property
188
- def exclude(self) -> bool:
189
- '''Sets to exclude the attribute from the destination layer. The initial value is .'''
190
- raise NotImplementedError()
191
-
192
- @exclude.setter
193
- def exclude(self, value : bool) -> None:
194
- '''Sets to exclude the attribute from the destination layer. The initial value is .'''
195
- raise NotImplementedError()
196
-
197
-
198
- class ConversionOptions:
199
- '''Options for converting data between formats.'''
200
-
201
- @property
202
- def source_driver_options(self) -> aspose.gis.DriverOptions:
203
- '''Driver-specific options for the source layer.'''
204
- raise NotImplementedError()
205
-
206
- @source_driver_options.setter
207
- def source_driver_options(self, value : aspose.gis.DriverOptions) -> None:
208
- '''Driver-specific options for the source layer.'''
209
- raise NotImplementedError()
210
-
211
- @property
212
- def destination_driver_options(self) -> aspose.gis.DriverOptions:
213
- '''Driver-specific options for the destination layer.'''
214
- raise NotImplementedError()
215
-
216
- @destination_driver_options.setter
217
- def destination_driver_options(self, value : aspose.gis.DriverOptions) -> None:
218
- '''Driver-specific options for the destination layer.'''
219
- raise NotImplementedError()
220
-
221
- @property
222
- def attributes_converter(self) -> aspose.gis.IAttributesConverter:
223
- '''A custom converter for attributes. It allows us to rename or exclude destination attributes.
224
- If not , it is called for each attribute of the source layer and is expected to change it if necessary.'''
225
- raise NotImplementedError()
226
-
227
- @attributes_converter.setter
228
- def attributes_converter(self, value : aspose.gis.IAttributesConverter) -> None:
229
- '''A custom converter for attributes. It allows us to rename or exclude destination attributes.
230
- If not , it is called for each attribute of the source layer and is expected to change it if necessary.'''
231
- raise NotImplementedError()
232
-
233
- @property
234
- def destination_spatial_reference_system(self) -> aspose.gis.spatialreferencing.SpatialReferenceSystem:
235
- '''Spatial reference system to assign to destination layer.'''
236
- raise NotImplementedError()
237
-
238
- @destination_spatial_reference_system.setter
239
- def destination_spatial_reference_system(self, value : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> None:
240
- '''Spatial reference system to assign to destination layer.'''
241
- raise NotImplementedError()
242
-
243
-
244
- class DatabaseDriver(Driver):
245
- '''A driver for a specific database based format.'''
246
-
247
-
248
- class DatabaseDriverOptions(DriverOptions):
249
- '''Options for a :py:class:`aspose.gis.DatabaseDriver`.'''
250
-
251
- @property
252
- def validate_geometries_on_write(self) -> bool:
253
- '''Determines if geometries should be validated when they are added to the layer.
254
- If set to , :py:attr:`aspose.gis.geometries.Geometry.is_valid` is called for each
255
- geometry when it\'s added to the layer, and if validation fails (:py:attr:`aspose.gis.geometries.Geometry.is_valid` is ), :py:class:`aspose.gis.GisException` is thrown.'''
256
- raise NotImplementedError()
257
-
258
- @validate_geometries_on_write.setter
259
- def validate_geometries_on_write(self, value : bool) -> None:
260
- '''Determines if geometries should be validated when they are added to the layer.
261
- If set to , :py:attr:`aspose.gis.geometries.Geometry.is_valid` is called for each
262
- geometry when it\'s added to the layer, and if validation fails (:py:attr:`aspose.gis.geometries.Geometry.is_valid` is ), :py:class:`aspose.gis.GisException` is thrown.'''
263
- raise NotImplementedError()
264
-
265
- @property
266
- def write_polygons_as_lines(self) -> bool:
267
- '''Determines if transformation of polygon or multipolygon to linestring is allowed. Defaults to .'''
268
- raise NotImplementedError()
269
-
270
- @write_polygons_as_lines.setter
271
- def write_polygons_as_lines(self, value : bool) -> None:
272
- '''Determines if transformation of polygon or multipolygon to linestring is allowed. Defaults to .'''
273
- raise NotImplementedError()
274
-
275
- @property
276
- def create_midpoints(self) -> bool:
277
- '''Determines if add a new point in the middle to each segment of geometry. Defaults to .'''
278
- raise NotImplementedError()
279
-
280
- @create_midpoints.setter
281
- def create_midpoints(self, value : bool) -> None:
282
- '''Determines if add a new point in the middle to each segment of geometry. Defaults to .'''
283
- raise NotImplementedError()
284
-
285
- @property
286
- def close_linear_ring(self) -> bool:
287
- '''Determines if close a unclosed :py:attr:`aspose.gis.geometries.GeometryType.LINEAR_RING` in each geometry. Defaults to .'''
288
- raise NotImplementedError()
289
-
290
- @close_linear_ring.setter
291
- def close_linear_ring(self, value : bool) -> None:
292
- '''Determines if close a unclosed :py:attr:`aspose.gis.geometries.GeometryType.LINEAR_RING` in each geometry. Defaults to .'''
293
- raise NotImplementedError()
294
-
295
- @property
296
- def delete_near_points(self) -> bool:
297
- '''Determines if delete near points in each geometry. Defaults to .'''
298
- raise NotImplementedError()
299
-
300
- @delete_near_points.setter
301
- def delete_near_points(self, value : bool) -> None:
302
- '''Determines if delete near points in each geometry. Defaults to .'''
303
- raise NotImplementedError()
304
-
305
- @property
306
- def delete_near_points_distance(self) -> float:
307
- '''Determines distance for :py:attr:`aspose.gis.DriverOptions.delete_near_points`. Defaults to .'''
308
- raise NotImplementedError()
309
-
310
- @delete_near_points_distance.setter
311
- def delete_near_points_distance(self, value : float) -> None:
312
- '''Determines distance for :py:attr:`aspose.gis.DriverOptions.delete_near_points`. Defaults to .'''
313
- raise NotImplementedError()
314
-
315
- @property
316
- def simplify_segments(self) -> bool:
317
- '''Determines if delete points lying on the same segment in each geometry. Defaults to .'''
318
- raise NotImplementedError()
319
-
320
- @simplify_segments.setter
321
- def simplify_segments(self, value : bool) -> None:
322
- '''Determines if delete points lying on the same segment in each geometry. Defaults to .'''
323
- raise NotImplementedError()
324
-
325
- @property
326
- def simplify_segments_distance(self) -> float:
327
- '''Determines distance for :py:attr:`aspose.gis.DriverOptions.simplify_segments`. Defaults to .'''
328
- raise NotImplementedError()
329
-
330
- @simplify_segments_distance.setter
331
- def simplify_segments_distance(self, value : float) -> None:
332
- '''Determines distance for :py:attr:`aspose.gis.DriverOptions.simplify_segments`. Defaults to .'''
333
- raise NotImplementedError()
334
-
335
- @property
336
- def xy_precision_model(self) -> aspose.gis.PrecisionModel:
337
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to X and Y coordinates
338
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
339
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
340
- raise NotImplementedError()
341
-
342
- @xy_precision_model.setter
343
- def xy_precision_model(self, value : aspose.gis.PrecisionModel) -> None:
344
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to X and Y coordinates
345
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
346
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
347
- raise NotImplementedError()
348
-
349
- @property
350
- def z_precision_model(self) -> aspose.gis.PrecisionModel:
351
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to Z coordinate
352
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
353
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
354
- raise NotImplementedError()
355
-
356
- @z_precision_model.setter
357
- def z_precision_model(self, value : aspose.gis.PrecisionModel) -> None:
358
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to Z coordinate
359
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
360
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
361
- raise NotImplementedError()
362
-
363
- @property
364
- def m_precision_model(self) -> aspose.gis.PrecisionModel:
365
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to M coordinate
366
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
367
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
368
- raise NotImplementedError()
369
-
370
- @m_precision_model.setter
371
- def m_precision_model(self, value : aspose.gis.PrecisionModel) -> None:
372
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to M coordinate
373
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
374
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
375
- raise NotImplementedError()
376
-
377
- @property
378
- def linearization_tolerance(self) -> float:
379
- '''A tolerance to use to linearize curve geometries.'''
380
- raise NotImplementedError()
381
-
382
- @linearization_tolerance.setter
383
- def linearization_tolerance(self, value : float) -> None:
384
- '''A tolerance to use to linearize curve geometries.'''
385
- raise NotImplementedError()
386
-
387
- @property
388
- def spatial_reference_system_mode(self) -> aspose.gis.SpatialReferenceSystemMode:
389
- '''Determines how the unknown geometries\' SRS for the database should be handle when they are added to the layer.
390
- The default value is :py:attr:`aspose.gis.SpatialReferenceSystemMode.THROW_EXCEPTION`.'''
391
- raise NotImplementedError()
392
-
393
- @spatial_reference_system_mode.setter
394
- def spatial_reference_system_mode(self, value : aspose.gis.SpatialReferenceSystemMode) -> None:
395
- '''Determines how the unknown geometries\' SRS for the database should be handle when they are added to the layer.
396
- The default value is :py:attr:`aspose.gis.SpatialReferenceSystemMode.THROW_EXCEPTION`.'''
397
- raise NotImplementedError()
398
-
399
-
400
- class Dataset:
401
- '''A dataset is the collection of :py:class:`aspose.gis.VectorLayer` instances.'''
402
-
403
- @overload
404
- @staticmethod
405
- def open(path : str, driver : aspose.gis.FileDriver) -> aspose.gis.Dataset:
406
- '''Opens the dataset.
407
-
408
- :param path: Path to the dataset.
409
- :param driver: Driver to use.
410
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
411
- raise NotImplementedError()
412
-
413
- @overload
414
- @staticmethod
415
- def open(path : aspose.gis.AbstractPath, driver : aspose.gis.FileDriver) -> aspose.gis.Dataset:
416
- '''Opens the dataset.
417
-
418
- :param path: Path to the dataset.
419
- :param driver: Driver to use.
420
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
421
- raise NotImplementedError()
422
-
423
- @overload
424
- @staticmethod
425
- def open(path : str, driver : aspose.gis.FileDriver, options : aspose.gis.DriverOptions) -> aspose.gis.Dataset:
426
- '''Opens the dataset.
427
-
428
- :param path: Path to the dataset.
429
- :param driver: Driver to use.
430
- :param options: Driver-specific options.
431
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
432
- raise NotImplementedError()
433
-
434
- @overload
435
- @staticmethod
436
- def open(path : aspose.gis.AbstractPath, driver : aspose.gis.FileDriver, options : aspose.gis.DriverOptions) -> aspose.gis.Dataset:
437
- '''Opens the dataset.
438
-
439
- :param path: Path to the dataset.
440
- :param driver: Driver to use.
441
- :param options: Driver-specific options.
442
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
443
- raise NotImplementedError()
444
-
445
- @overload
446
- @staticmethod
447
- def create(path : str, driver : aspose.gis.FileDriver) -> aspose.gis.Dataset:
448
- '''Creates a dataset.
449
-
450
- :param path: Path to the dataset.
451
- :param driver: Driver to use.
452
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
453
- raise NotImplementedError()
454
-
455
- @overload
456
- @staticmethod
457
- def create(path : aspose.gis.AbstractPath, driver : aspose.gis.FileDriver) -> aspose.gis.Dataset:
458
- '''Creates a dataset.
459
-
460
- :param path: Path to the dataset.
461
- :param driver: Driver to use.
462
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
463
- raise NotImplementedError()
464
-
465
- @overload
466
- @staticmethod
467
- def create(path : str, driver : aspose.gis.FileDriver, options : aspose.gis.DriverOptions) -> aspose.gis.Dataset:
468
- '''Creates a dataset.
469
-
470
- :param path: Path to the dataset.
471
- :param driver: Driver to use.
472
- :param options: Driver-specific options.
473
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
474
- raise NotImplementedError()
475
-
476
- @overload
477
- @staticmethod
478
- def create(path : aspose.gis.AbstractPath, driver : aspose.gis.FileDriver, options : aspose.gis.DriverOptions) -> aspose.gis.Dataset:
479
- '''Creates a dataset.
480
-
481
- :param path: Path to the dataset.
482
- :param driver: Driver to use.
483
- :param options: Driver-specific options.
484
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
485
- raise NotImplementedError()
486
-
487
- @overload
488
- def create_layer(self) -> aspose.gis.VectorLayer:
489
- '''Creates a new vector layer and opens it for appending.
490
-
491
- :returns: A :py:class:`aspose.gis.VectorLayer` opened for writing.'''
492
- raise NotImplementedError()
493
-
494
- @overload
495
- def create_layer(self, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
496
- '''Creates a new vector layer and opens it for appending.
497
-
498
- :param spatial_reference_system: Spatial reference system of the new layer.
499
- :returns: A :py:class:`aspose.gis.VectorLayer` opened for writing.'''
500
- raise NotImplementedError()
501
-
502
- @overload
503
- def create_layer(self, options : aspose.gis.DriverOptions, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
504
- '''Creates a new vector layer and opens it for appending.
505
-
506
- :param options: Open options.
507
- :param spatial_reference_system: Spatial reference system of the new layer.
508
- :returns: A :py:class:`aspose.gis.VectorLayer` opened for writing.'''
509
- raise NotImplementedError()
510
-
511
- @overload
512
- def create_layer(self, name : str, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
513
- '''Creates a new vector layer with specified name and opens it for appending.
514
-
515
- :param name: Name of the layer.
516
- :param spatial_reference_system: Spatial reference system of the new layer.
517
- :returns: A :py:class:`aspose.gis.VectorLayer` opened for writing.'''
518
- raise NotImplementedError()
519
-
520
- @overload
521
- def create_layer(self, name : str, options : aspose.gis.DriverOptions, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
522
- '''Creates a new vector layer with specified name and opens it for appending.
523
-
524
- :param name: Name of the layer.
525
- :param options: Open options.
526
- :param spatial_reference_system: Spatial reference system of the new layer.
527
- :returns: A :py:class:`aspose.gis.VectorLayer` opened for writing.'''
528
- raise NotImplementedError()
529
-
530
- def get_layer_name(self, index : int) -> str:
531
- '''Gets the name of the layer at specified index.
532
-
533
- :param index: Index of the layer.
534
- :returns: Name of the layer.'''
535
- raise NotImplementedError()
536
-
537
- def open_layer(self, name : str, options : aspose.gis.DriverOptions) -> aspose.gis.VectorLayer:
538
- '''Opens the layer with specified name for reading.
539
-
540
- :param name: Name of the layer to open.
541
- :param options: Open options.
542
- :returns: The layer opened for reading.'''
543
- raise NotImplementedError()
544
-
545
- def open_layer_at(self, index : int, options : aspose.gis.DriverOptions) -> aspose.gis.VectorLayer:
546
- '''Opens the layer at specified index for reading.
547
-
548
- :param index: Index of the layer to open.
549
- :param options: Open options.
550
- :returns: The layer opened for reading.'''
551
- raise NotImplementedError()
552
-
553
- def edit_layer(self, name : str, options : aspose.gis.DriverOptions, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
554
- '''Opens the layer with specified name for editing.
555
-
556
- :param name: Name of the layer to edit.
557
- :param options: Open options.
558
- :param spatial_reference_system: Spatial reference system for new geometries.
559
- :returns: The layer opened for editing.'''
560
- raise NotImplementedError()
561
-
562
- def edit_layer_at(self, index : int, options : aspose.gis.DriverOptions, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
563
- '''Opens the layer with specified name for editing.
564
-
565
- :param index: Index of the layer to edit.
566
- :param options: Open options.
567
- :param spatial_reference_system: Spatial reference system for new geometries.
568
- :returns: The layer opened for editing.'''
569
- raise NotImplementedError()
570
-
571
- def remove_layer(self, name : str) -> None:
572
- '''Removes the vector layer with specified name.
573
-
574
- :param name: Name of the layer'''
575
- raise NotImplementedError()
576
-
577
- def remove_layer_at(self, index : int) -> None:
578
- '''Removes the vector layer at specified index.
579
-
580
- :param index: Index of the layer'''
581
- raise NotImplementedError()
582
-
583
- def has_layer_with_name(self, name : str) -> bool:
584
- '''Check has current dataset a layer with specific name
585
-
586
- :param name: Name of the layer
587
- :returns: , if dataset has layer with this name; otherwise,'''
588
- raise NotImplementedError()
589
-
590
- def rename_layer(self, current_name : str, new_name : str) -> None:
591
- '''Rename layer in dataset
592
-
593
- :param current_name: Current name of the layer
594
- :param new_name: New name for the layer'''
595
- raise NotImplementedError()
596
-
597
- @property
598
- def can_create_layers(self) -> bool:
599
- '''Gets a value indicating whether this dataset can create vector layers.'''
600
- raise NotImplementedError()
601
-
602
- @property
603
- def can_remove_layers(self) -> bool:
604
- '''Gets a value indicating whether this dataset can remove vector layers.'''
605
- raise NotImplementedError()
606
-
607
- @property
608
- def driver(self) -> aspose.gis.Driver:
609
- '''Gets the :py:attr:`aspose.gis.Dataset.driver` that instantiated this dataset.'''
610
- raise NotImplementedError()
611
-
612
- @property
613
- def layers_count(self) -> int:
614
- '''Gets the number of layers in this dataset.'''
615
- raise NotImplementedError()
616
-
617
-
618
- class Driver:
619
- '''A base class for drivers to GIS data.'''
620
-
621
-
622
- class DriverOptions:
623
- '''Options for a :py:class:`aspose.gis.Driver`.'''
624
-
625
- @property
626
- def validate_geometries_on_write(self) -> bool:
627
- '''Determines if geometries should be validated when they are added to the layer.
628
- If set to , :py:attr:`aspose.gis.geometries.Geometry.is_valid` is called for each
629
- geometry when it\'s added to the layer, and if validation fails (:py:attr:`aspose.gis.geometries.Geometry.is_valid` is ), :py:class:`aspose.gis.GisException` is thrown.'''
630
- raise NotImplementedError()
631
-
632
- @validate_geometries_on_write.setter
633
- def validate_geometries_on_write(self, value : bool) -> None:
634
- '''Determines if geometries should be validated when they are added to the layer.
635
- If set to , :py:attr:`aspose.gis.geometries.Geometry.is_valid` is called for each
636
- geometry when it\'s added to the layer, and if validation fails (:py:attr:`aspose.gis.geometries.Geometry.is_valid` is ), :py:class:`aspose.gis.GisException` is thrown.'''
637
- raise NotImplementedError()
638
-
639
- @property
640
- def write_polygons_as_lines(self) -> bool:
641
- '''Determines if transformation of polygon or multipolygon to linestring is allowed. Defaults to .'''
642
- raise NotImplementedError()
643
-
644
- @write_polygons_as_lines.setter
645
- def write_polygons_as_lines(self, value : bool) -> None:
646
- '''Determines if transformation of polygon or multipolygon to linestring is allowed. Defaults to .'''
647
- raise NotImplementedError()
648
-
649
- @property
650
- def create_midpoints(self) -> bool:
651
- '''Determines if add a new point in the middle to each segment of geometry. Defaults to .'''
652
- raise NotImplementedError()
653
-
654
- @create_midpoints.setter
655
- def create_midpoints(self, value : bool) -> None:
656
- '''Determines if add a new point in the middle to each segment of geometry. Defaults to .'''
657
- raise NotImplementedError()
658
-
659
- @property
660
- def close_linear_ring(self) -> bool:
661
- '''Determines if close a unclosed :py:attr:`aspose.gis.geometries.GeometryType.LINEAR_RING` in each geometry. Defaults to .'''
662
- raise NotImplementedError()
663
-
664
- @close_linear_ring.setter
665
- def close_linear_ring(self, value : bool) -> None:
666
- '''Determines if close a unclosed :py:attr:`aspose.gis.geometries.GeometryType.LINEAR_RING` in each geometry. Defaults to .'''
667
- raise NotImplementedError()
668
-
669
- @property
670
- def delete_near_points(self) -> bool:
671
- '''Determines if delete near points in each geometry. Defaults to .'''
672
- raise NotImplementedError()
673
-
674
- @delete_near_points.setter
675
- def delete_near_points(self, value : bool) -> None:
676
- '''Determines if delete near points in each geometry. Defaults to .'''
677
- raise NotImplementedError()
678
-
679
- @property
680
- def delete_near_points_distance(self) -> float:
681
- '''Determines distance for :py:attr:`aspose.gis.DriverOptions.delete_near_points`. Defaults to .'''
682
- raise NotImplementedError()
683
-
684
- @delete_near_points_distance.setter
685
- def delete_near_points_distance(self, value : float) -> None:
686
- '''Determines distance for :py:attr:`aspose.gis.DriverOptions.delete_near_points`. Defaults to .'''
687
- raise NotImplementedError()
688
-
689
- @property
690
- def simplify_segments(self) -> bool:
691
- '''Determines if delete points lying on the same segment in each geometry. Defaults to .'''
692
- raise NotImplementedError()
693
-
694
- @simplify_segments.setter
695
- def simplify_segments(self, value : bool) -> None:
696
- '''Determines if delete points lying on the same segment in each geometry. Defaults to .'''
697
- raise NotImplementedError()
698
-
699
- @property
700
- def simplify_segments_distance(self) -> float:
701
- '''Determines distance for :py:attr:`aspose.gis.DriverOptions.simplify_segments`. Defaults to .'''
702
- raise NotImplementedError()
703
-
704
- @simplify_segments_distance.setter
705
- def simplify_segments_distance(self, value : float) -> None:
706
- '''Determines distance for :py:attr:`aspose.gis.DriverOptions.simplify_segments`. Defaults to .'''
707
- raise NotImplementedError()
708
-
709
- @property
710
- def xy_precision_model(self) -> aspose.gis.PrecisionModel:
711
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to X and Y coordinates
712
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
713
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
714
- raise NotImplementedError()
715
-
716
- @xy_precision_model.setter
717
- def xy_precision_model(self, value : aspose.gis.PrecisionModel) -> None:
718
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to X and Y coordinates
719
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
720
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
721
- raise NotImplementedError()
722
-
723
- @property
724
- def z_precision_model(self) -> aspose.gis.PrecisionModel:
725
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to Z coordinate
726
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
727
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
728
- raise NotImplementedError()
729
-
730
- @z_precision_model.setter
731
- def z_precision_model(self, value : aspose.gis.PrecisionModel) -> None:
732
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to Z coordinate
733
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
734
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
735
- raise NotImplementedError()
736
-
737
- @property
738
- def m_precision_model(self) -> aspose.gis.PrecisionModel:
739
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to M coordinate
740
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
741
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
742
- raise NotImplementedError()
743
-
744
- @m_precision_model.setter
745
- def m_precision_model(self, value : aspose.gis.PrecisionModel) -> None:
746
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to M coordinate
747
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
748
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
749
- raise NotImplementedError()
750
-
751
- @property
752
- def linearization_tolerance(self) -> float:
753
- '''A tolerance to use to linearize curve geometries.'''
754
- raise NotImplementedError()
755
-
756
- @linearization_tolerance.setter
757
- def linearization_tolerance(self, value : float) -> None:
758
- '''A tolerance to use to linearize curve geometries.'''
759
- raise NotImplementedError()
760
-
761
-
762
- class Drivers:
763
- '''Drivers for all supported formats.'''
764
-
765
- esri_json : aspose.gis.formats.esrijson.EsriJsonDriver
766
- '''A driver for the EsriJson format.'''
767
- gdal : aspose.gis.formats.gdal.GdalDriver
768
- '''A driver for the GDAL format.'''
769
- geo_json : aspose.gis.formats.geojson.GeoJsonDriver
770
- '''A driver for the GeoJSON format.'''
771
- geo_json_seq : aspose.gis.formats.geojsonseq.GeoJsonSeqDriver
772
- '''A driver for the GeoJsonSeq: sequence of GeoJSON features.'''
773
- in_memory : aspose.gis.formats.inmemory.InMemoryDriver
774
- '''A driver for work with data in memory.'''
775
- in_file : aspose.gis.formats.infile.InFileDriver
776
- '''A driver for work with data and save changes in file on HDD.'''
777
- kml : aspose.gis.formats.kml.KmlDriver
778
- '''A driver for the KML format.'''
779
- shapefile : aspose.gis.formats.shapefile.ShapefileDriver
780
- '''A driver for the Shapefile format.'''
781
- osm_xml : aspose.gis.formats.osmxml.OsmXmlDriver
782
- '''A driver for the OSM XML format.'''
783
- gpx : aspose.gis.formats.gpx.GpxDriver
784
- '''A driver for the GPX format.'''
785
- gml : aspose.gis.formats.gml.GmlDriver
786
- '''A driver for the GML format.'''
787
- file_gdb : aspose.gis.formats.filegdb.FileGdbDriver
788
- '''A driver for the ESRI File Geodatabase format.'''
789
- topo_json : aspose.gis.formats.topojson.TopoJsonDriver
790
- '''A driver for the TopoJSON format.'''
791
- map_info_interchange : aspose.gis.formats.mapinfointerchange.MapInfoInterchangeDriver
792
- '''A driver for the MapInfo Interchange Format.'''
793
- map_info_tab : aspose.gis.formats.mapinfotab.MapInfoTabDriver
794
- '''A driver for the MapInfo Tab format.'''
795
- post_gis : aspose.gis.formats.postgis.PostGisDriver
796
- '''A driver for the PostGIS database.'''
797
- sql_server : aspose.gis.formats.sqlserver.SqlServerDriver
798
- '''A driver for the SQL Server database.'''
799
- esri_ascii : aspose.gis.formats.esriascii.EsriAsciiDriver
800
- '''A driver for the Esri AscII raster format.'''
801
- geo_tiff : aspose.gis.formats.geotiff.GeoTiffDriver
802
- '''A driver for the GeoTIFF or TIFF raster format.'''
803
- world_raster : aspose.gis.formats.worldfile.WorldRasterDriver
804
- '''A driver for raster.formats with world file'''
805
- jpeg_w : aspose.gis.formats.jpegw.JpegWDriver
806
- '''A driver for the JpegW raster format.'''
807
- png_w : aspose.gis.formats.pngw.PngWDriver
808
- '''A driver for the PngW raster format.'''
809
- bmp_w : aspose.gis.formats.bmpw.BmpWDriver
810
- '''A driver for the BmpW raster format.'''
811
- tiff_w : aspose.gis.formats.tiffw.TiffWDriver
812
- '''A driver for the TiffW raster format.'''
813
- xyz_tiles : aspose.gis.formats.xyztile.XyzTilesDriver
814
- '''A driver for the tiled web map like OpenStreetMaps, Google Maps, etc.'''
815
- csv : aspose.gis.formats.csv.CsvDriver
816
- '''A driver for the CSV format.'''
817
-
818
- class Extent:
819
- '''A two-dimensional spatial bounding box.'''
820
-
821
- @overload
822
- def grow(self, extent : aspose.gis.Extent) -> None:
823
- '''Grows this extent so it includes the argument.
824
-
825
- :param extent: Other extent.'''
826
- raise NotImplementedError()
827
-
828
- @overload
829
- def grow(self, x : float, y : float) -> None:
830
- '''Grows this extent so it includes the specified point.
831
-
832
- :param x: X coordinate to include.
833
- :param y: Y coordinate to include.'''
834
- raise NotImplementedError()
835
-
836
- @overload
837
- def contains(self, x : float, y : float) -> bool:
838
- '''Determines whether this extent contains a coordinate defined by the arguments.
839
-
840
- :param x: X of the coordinate.
841
- :param y: Y of the coordinate.
842
- :returns: Value, indicating whether coordinate is inside bounding box.'''
843
- raise NotImplementedError()
844
-
845
- @overload
846
- def contains(self, extent : aspose.gis.Extent) -> bool:
847
- '''Determines whether this extent contains the argument.
848
-
849
- :param extent: Another extent.
850
- :returns: Value, indicating whether this extent contains the argument.'''
851
- raise NotImplementedError()
852
-
853
- @overload
854
- def contains(self, geometry : aspose.gis.geometries.IGeometry) -> bool:
855
- '''Determines whether this extent contains the argument.
856
-
857
- :param geometry: A geometry to test for containment.
858
- :returns: Value, indicating whether this extent contains the argument.'''
859
- raise NotImplementedError()
860
-
861
- @overload
862
- def intersects(self, extent : aspose.gis.Extent) -> bool:
863
- '''Determines whether this extent intersects with the argument.
864
-
865
- :param extent: Another extent.
866
- :returns: Value, indicating whether this extent intersects with the argument.'''
867
- raise NotImplementedError()
868
-
869
- @overload
870
- def intersects(self, geometry : aspose.gis.geometries.IGeometry) -> bool:
871
- '''Determines whether this extent intersects with the argument.
872
-
873
- :param geometry: A geometry to test for intersection
874
- :returns: Value, indicating whether this extent intersects with the argument.'''
875
- raise NotImplementedError()
876
-
877
- def get_transformed(self, target_srs : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.Extent:
878
- '''Returns new extent in specified :py:class:`aspose.gis.spatialreferencing.SpatialReferenceSystem` that contains this extent.
879
-
880
- :param target_srs: :py:class:`aspose.gis.spatialreferencing.SpatialReferenceSystem` to transform to.
881
- :returns: The result of transformation this extent to the specified SRS.'''
882
- raise NotImplementedError()
883
-
884
- def normalize(self) -> None:
885
- '''Swaps :py:attr:`aspose.gis.Extent.x_min` with :py:attr:`aspose.gis.Extent.x_max` if :py:attr:`aspose.gis.Extent.width` is negative and
886
- :py:attr:`aspose.gis.Extent.y_min` with :py:attr:`aspose.gis.Extent.y_max` if :py:attr:`aspose.gis.Extent.height` is negative.'''
887
- raise NotImplementedError()
888
-
889
- def clone(self) -> aspose.gis.Extent:
890
- '''Clones this instance.
891
-
892
- :returns: Clone of this instance.'''
893
- raise NotImplementedError()
894
-
895
- def to_polygon(self) -> aspose.gis.geometries.Polygon:
896
- '''Converts this extent to a rectangular polygon that represents it.
897
-
898
- :returns: A rectangular :py:class:`aspose.gis.geometries.Polygon` that represents this extent. For invalid extents
899
- an empty polygon is returned.'''
900
- raise NotImplementedError()
901
-
902
- def grow_x(self, value : float) -> None:
903
- '''Grows this extent along the X axis so it includes the specified value.
904
-
905
- :param value: Value to include.'''
906
- raise NotImplementedError()
907
-
908
- def grow_y(self, value : float) -> None:
909
- '''Grows this extent along the Y axis so it includes the specified value.
910
-
911
- :param value: Value to include.'''
912
- raise NotImplementedError()
913
-
914
- def equals(self, other : aspose.gis.Extent) -> bool:
915
- '''Indicates whether the current object is equal to another object of the same type.
916
-
917
- :param other: An object to compare with this object.
918
- :returns: if the current object is equal to the ``other`` parameter; otherwise, .'''
919
- raise NotImplementedError()
920
-
921
- @property
922
- def x_min(self) -> float:
923
- '''Minimum value of the X coordinate.'''
924
- raise NotImplementedError()
925
-
926
- @x_min.setter
927
- def x_min(self, value : float) -> None:
928
- '''Minimum value of the X coordinate.'''
929
- raise NotImplementedError()
930
-
931
- @property
932
- def x_max(self) -> float:
933
- '''Maximum value of the X coordinate.'''
934
- raise NotImplementedError()
935
-
936
- @x_max.setter
937
- def x_max(self, value : float) -> None:
938
- '''Maximum value of the X coordinate.'''
939
- raise NotImplementedError()
940
-
941
- @property
942
- def y_min(self) -> float:
943
- '''Minimum value of the Y coordinate.'''
944
- raise NotImplementedError()
945
-
946
- @y_min.setter
947
- def y_min(self, value : float) -> None:
948
- '''Minimum value of the Y coordinate.'''
949
- raise NotImplementedError()
950
-
951
- @property
952
- def y_max(self) -> float:
953
- '''Maximum value of the Y coordinate.'''
954
- raise NotImplementedError()
955
-
956
- @y_max.setter
957
- def y_max(self, value : float) -> None:
958
- '''Maximum value of the Y coordinate.'''
959
- raise NotImplementedError()
960
-
961
- @property
962
- def spatial_reference_system(self) -> aspose.gis.spatialreferencing.SpatialReferenceSystem:
963
- ''':py:class:`aspose.gis.spatialreferencing.SpatialReferenceSystem` associated with this extent.
964
- Can be if :py:attr:`aspose.gis.Extent.spatial_reference_system` is unknown.
965
- Use :py:func:`aspose.gis.Extent.get_transformed`
966
- in order to transform extent between difference spatial reference systems.'''
967
- raise NotImplementedError()
968
-
969
- @spatial_reference_system.setter
970
- def spatial_reference_system(self, value : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> None:
971
- ''':py:class:`aspose.gis.spatialreferencing.SpatialReferenceSystem` associated with this extent.
972
- Can be if :py:attr:`aspose.gis.Extent.spatial_reference_system` is unknown.
973
- Use :py:func:`aspose.gis.Extent.get_transformed`
974
- in order to transform extent between difference spatial reference systems.'''
975
- raise NotImplementedError()
976
-
977
- @property
978
- def center(self) -> aspose.gis.geometries.IPoint:
979
- '''Center of the extent.'''
980
- raise NotImplementedError()
981
-
982
- @property
983
- def width(self) -> float:
984
- '''Width of the extent.'''
985
- raise NotImplementedError()
986
-
987
- @property
988
- def height(self) -> float:
989
- '''Height of the extent.'''
990
- raise NotImplementedError()
991
-
992
- @property
993
- def is_valid(self) -> bool:
994
- '''Determines whether this :py:class:`aspose.gis.Extent` is valid.'''
995
- raise NotImplementedError()
996
-
997
-
998
- class Feature:
999
- '''A geographic feature composed of a geometry and user-defined attributes.'''
1000
-
1001
- @overload
1002
- def get_values(self, values_count : int, default_value : Any) -> List[Any]:
1003
- '''Returns the values for all the attributes in an array.
1004
-
1005
- :param values_count: The values count.
1006
- :param default_value: The value to return if the attribute value is missing (unset). Default value is .
1007
- Consider to use \':py:class:`System.DBNull`.Value\' for separating \'unset\' and \'\' values.
1008
- :returns: A number of attributes copied.'''
1009
- raise NotImplementedError()
1010
-
1011
- @overload
1012
- def get_values(self, values : List[Any], default_value : Any) -> int:
1013
- '''Returns the values for all the attributes in an array.
1014
-
1015
- :param values: The array into which to copy the attributes values.
1016
- :param default_value: The value to return if the attribute value is missing (unset). Default value is .
1017
- Consider to use \':py:class:`System.DBNull`.Value\' for separating \'unset\' and \'\' values.
1018
- :returns: A number of attributes copied.'''
1019
- raise NotImplementedError()
1020
-
1021
- def get_value(self, attribute_name : str) -> Any:
1022
- '''Gets the value of an attribute.
1023
-
1024
- :param attribute_name: Name of the attribute.
1025
- :returns: Value of the attribute.'''
1026
- raise NotImplementedError()
1027
-
1028
- def get_values_list(self, attribute_name : str, separator : str, count : int) -> List[Any]:
1029
- '''Gets the values list. Non-generic analog of List T GetValuesList
1030
-
1031
- :param attribute_name: Name of the attribute.
1032
- :param separator: A string which is used to separate attribute name and index value of sequence.
1033
- :param count: Count of values to return (missed value fill as null)
1034
- :returns: List of values of the attributes which names different by sequence index value.'''
1035
- raise NotImplementedError()
1036
-
1037
- def get_value_or_default(self, attribute_name : str, default_value : Any) -> Any:
1038
- '''Gets the value of an attribute, or :py:attr:`aspose.gis.FeatureAttribute.default_value` if the value is unset or ``null``.
1039
-
1040
- :param attribute_name: Name of the attribute.
1041
- :param default_value: The value to return if the attribute value is missing. Default value is .
1042
- :returns: Value of the attribute.'''
1043
- raise NotImplementedError()
1044
-
1045
- def set_value(self, attribute_name : str, value : Any) -> None:
1046
- '''Sets the value. Non-generic analog of void SetValue (string attributeName, T value)
1047
-
1048
- :param attribute_name: The name of the attribute.
1049
- :param value: The value of the attribute.'''
1050
- raise NotImplementedError()
1051
-
1052
- def is_value_null(self, attribute_name : str) -> bool:
1053
- '''Determines whether the specified attribute has been explicitly set to ``null`` value.
1054
-
1055
- :param attribute_name: Name of the attribute.
1056
- :returns: if the attribute value is ``null``; otherwise, .'''
1057
- raise NotImplementedError()
1058
-
1059
- def set_value_null(self, attribute_name : str) -> None:
1060
- '''Sets value of the attribute to ``null``.
1061
-
1062
- :param attribute_name: The name of the attribute.'''
1063
- raise NotImplementedError()
1064
-
1065
- def unset_value(self, attribute_name : str) -> None:
1066
- '''Removes the attribute value from this feature.
1067
-
1068
- :param attribute_name: Name of the attribute.'''
1069
- raise NotImplementedError()
1070
-
1071
- def is_value_set(self, attribute_name : str) -> bool:
1072
- '''Checks if the attribute value is set in this feature.
1073
-
1074
- :param attribute_name: Name of the attribute.
1075
- :returns: if value for the specified attribute is set; otherwise, .'''
1076
- raise NotImplementedError()
1077
-
1078
- def copy_values(self, input_feature : aspose.gis.Feature) -> None:
1079
- '''Copies values of attributes from another feature.
1080
-
1081
- :param input_feature: The feature to copy values from.'''
1082
- raise NotImplementedError()
1083
-
1084
- def get_values_dump(self, default_value : Any) -> List[Any]:
1085
- '''Returns the values for all the attributes in an array.
1086
- Consider to use :py:func:`aspose.gis.Feature.get_values` method to avoid additional memory allocation.
1087
-
1088
- :param default_value: The value to return if the attribute value is missing (unset). Default value is .
1089
- Consider to use \':py:class:`System.DBNull`.Value\' for separating \'unset\' and \'\' values.
1090
- :returns: A new array into which to copy the attributes values.'''
1091
- raise NotImplementedError()
1092
-
1093
- def set_values(self, values : List[Any]) -> int:
1094
- '''Sets new values for all of the attributes.
1095
- Also consider to use :py:func:`aspose.gis.Feature.copy_values` method to streamline setting values in one call.
1096
-
1097
- :param values: The array of new values.
1098
- :returns: The number of attribute values set.'''
1099
- raise NotImplementedError()
1100
-
1101
- @property
1102
- def geometry(self) -> aspose.gis.geometries.IGeometry:
1103
- '''Gets geometry of the feature.
1104
- Cannot be , use :py:attr:`aspose.gis.geometries.Geometry.null` to indicate missing geometry.'''
1105
- raise NotImplementedError()
1106
-
1107
- @geometry.setter
1108
- def geometry(self, value : aspose.gis.geometries.IGeometry) -> None:
1109
- '''Sets geometry of the feature.
1110
- Cannot be , use :py:attr:`aspose.gis.geometries.Geometry.null` to indicate missing geometry.'''
1111
- raise NotImplementedError()
1112
-
1113
-
1114
- class FeatureAttribute:
1115
- '''An attribute of a :py:class:`aspose.gis.Feature`.'''
1116
-
1117
- def lock(self) -> None:
1118
- '''Locks this attribute.'''
1119
- raise NotImplementedError()
1120
-
1121
- @property
1122
- def name(self) -> str:
1123
- '''Gets the name of the attribute.'''
1124
- raise NotImplementedError()
1125
-
1126
- @name.setter
1127
- def name(self, value : str) -> None:
1128
- '''Gets the name of the attribute.'''
1129
- raise NotImplementedError()
1130
-
1131
- @property
1132
- def data_type(self) -> aspose.gis.AttributeDataType:
1133
- '''Gets the data type of the attribute.'''
1134
- raise NotImplementedError()
1135
-
1136
- @data_type.setter
1137
- def data_type(self, value : aspose.gis.AttributeDataType) -> None:
1138
- '''Gets the data type of the attribute.'''
1139
- raise NotImplementedError()
1140
-
1141
- @property
1142
- def type_name(self) -> str:
1143
- '''The type name of the attribute.'''
1144
- raise NotImplementedError()
1145
-
1146
- @type_name.setter
1147
- def type_name(self, value : str) -> None:
1148
- '''The type name of the attribute.'''
1149
- raise NotImplementedError()
1150
-
1151
- @property
1152
- def can_be_null(self) -> bool:
1153
- '''Gets a value indicating whether this instance can be null.'''
1154
- raise NotImplementedError()
1155
-
1156
- @can_be_null.setter
1157
- def can_be_null(self, value : bool) -> None:
1158
- '''Gets a value indicating whether this instance can be null.'''
1159
- raise NotImplementedError()
1160
-
1161
- @property
1162
- def can_be_unset(self) -> bool:
1163
- '''Gets a value indicating whether value for this attribute can be omitted.'''
1164
- raise NotImplementedError()
1165
-
1166
- @can_be_unset.setter
1167
- def can_be_unset(self, value : bool) -> None:
1168
- '''Sets a value indicating whether value for this attribute can be omitted.'''
1169
- raise NotImplementedError()
1170
-
1171
- @property
1172
- def default_value(self) -> Any:
1173
- '''Gets a value for the attribute, that indicates missing data.'''
1174
- raise NotImplementedError()
1175
-
1176
- @default_value.setter
1177
- def default_value(self, value : Any) -> None:
1178
- '''Sets a value for the attribute, that indicates missing data.'''
1179
- raise NotImplementedError()
1180
-
1181
- @property
1182
- def has_custom_default_value(self) -> bool:
1183
- '''Gets a value indicating whether the pre-defined default value for this attribute was overridden with a custom value.'''
1184
- raise NotImplementedError()
1185
-
1186
- @property
1187
- def width(self) -> Optional[int]:
1188
- '''Gets maximum allowed width of character representation of the attribute.'''
1189
- raise NotImplementedError()
1190
-
1191
- @width.setter
1192
- def width(self, value : Optional[int]) -> None:
1193
- '''Sets maximum allowed width of character representation of the attribute.'''
1194
- raise NotImplementedError()
1195
-
1196
- @property
1197
- def precision(self) -> Optional[int]:
1198
- '''Gets maximum number of decimal digits to store.'''
1199
- raise NotImplementedError()
1200
-
1201
- @precision.setter
1202
- def precision(self, value : Optional[int]) -> None:
1203
- '''Sets maximum number of decimal digits to store.'''
1204
- raise NotImplementedError()
1205
-
1206
- @property
1207
- def is_locked(self) -> bool:
1208
- '''Gets a value indicating whether this attribute is locked.'''
1209
- raise NotImplementedError()
1210
-
1211
-
1212
- class FeatureAttributeCollection:
1213
- '''A :py:class:`aspose.gis.FeatureAttributeCollection` defines what attributes are available for a :py:class:`aspose.gis.Feature`.'''
1214
-
1215
- @overload
1216
- def remove(self, name : str) -> None:
1217
- '''Removes the attribute from the collection.
1218
-
1219
- :param name: Name of the attribute.'''
1220
- raise NotImplementedError()
1221
-
1222
- @overload
1223
- def remove(self, index : int) -> None:
1224
- '''Removes the attribute from the collection.
1225
-
1226
- :param index: Index of the attribute.'''
1227
- raise NotImplementedError()
1228
-
1229
- def lock(self) -> None:
1230
- '''Locks this attribute collection to prevent further modifications.'''
1231
- raise NotImplementedError()
1232
-
1233
- def contains(self, name : str) -> bool:
1234
- '''Determines whether the attribute collection contains an attribute with the specified name.
1235
-
1236
- :param name: Name of the attribute.
1237
- :returns: if the attribute collection contains and attribute with the specified name; otherwise, .'''
1238
- raise NotImplementedError()
1239
-
1240
- def index_of(self, name : str) -> int:
1241
- '''Searches for the attribute and returns the its zero-based index.
1242
-
1243
- :param name: Name of the attribute.
1244
- :returns: The zero-based index of the attribute within the collection, if found; otherwise, –1.'''
1245
- raise NotImplementedError()
1246
-
1247
- def add(self, attribute : aspose.gis.FeatureAttribute) -> None:
1248
- '''Adds an attribute to the collection.
1249
-
1250
- :param attribute: The attribute to add.'''
1251
- raise NotImplementedError()
1252
-
1253
- @property
1254
- def count(self) -> int:
1255
- '''Gets the number of attributes in a :py:class:`aspose.gis.Feature`.'''
1256
- raise NotImplementedError()
1257
-
1258
- @property
1259
- def is_locked(self) -> bool:
1260
- '''Gets a value indicating whether this attribute collection is locked.'''
1261
- raise NotImplementedError()
1262
-
1263
- def __getitem__(self, key : int) -> aspose.gis.FeatureAttribute:
1264
- '''Gets or sets the :py:class:`aspose.gis.FeatureAttribute` at the specified index.'''
1265
- raise NotImplementedError()
1266
-
1267
- def __setitem__(self, key : int, value : aspose.gis.FeatureAttribute):
1268
- raise NotImplementedError()
1269
-
1270
-
1271
- class FeatureStyle(IFeatureStyle):
1272
- '''The abstract root class of the feature styles hierarchy.'''
1273
-
1274
- null : aspose.gis.IFeatureStyle
1275
- '''Gets an instance of null style.'''
1276
-
1277
- class FeaturesSequence:
1278
- ''':py:class:`aspose.gis.FeaturesSequence` represents a set of vector features.'''
1279
-
1280
- @overload
1281
- def where_intersects(self, sequence : aspose.gis.FeaturesSequence) -> aspose.gis.FeaturesSequence:
1282
- '''Filters features based on the union of all geometries in other features sequence.
1283
-
1284
- :param sequence: Other features sequence.
1285
- :returns: Features that intersect with the union of all geometries in other features sequence.'''
1286
- raise NotImplementedError()
1287
-
1288
- @overload
1289
- def where_intersects(self, geometry : aspose.gis.geometries.IGeometry) -> aspose.gis.FeaturesSequence:
1290
- '''Filters features based on the provided geometry.
1291
-
1292
- :param geometry: Filter geometry.
1293
- :returns: Features that intersect with the provided geometry.'''
1294
- raise NotImplementedError()
1295
-
1296
- @overload
1297
- def where_intersects(self, extent : aspose.gis.Extent) -> aspose.gis.FeaturesSequence:
1298
- '''Filters features based on the extent.
1299
-
1300
- :param extent: Filter extent.
1301
- :returns: Features that intersect with the provided geometry.'''
1302
- raise NotImplementedError()
1303
-
1304
- @overload
1305
- def save_to(self, destination_path : str, destination_driver : aspose.gis.FileDriver) -> None:
1306
- '''Saves features sequence to layer.
1307
-
1308
- :param destination_path: Path to the output layer.
1309
- :param destination_driver: The format driver for the output layer.'''
1310
- raise NotImplementedError()
1311
-
1312
- @overload
1313
- def save_to(self, destination_path : aspose.gis.AbstractPath, destination_driver : aspose.gis.FileDriver) -> None:
1314
- '''Saves features sequence to layer.
1315
-
1316
- :param destination_path: Path to the output layer.
1317
- :param destination_driver: The format driver for the output layer.'''
1318
- raise NotImplementedError()
1319
-
1320
- @overload
1321
- def save_to(self, destination_path : str, destination_driver : aspose.gis.FileDriver, options : aspose.gis.SavingOptions) -> None:
1322
- '''Saves features sequence to layer.
1323
-
1324
- :param destination_path: Path to the output layer.
1325
- :param destination_driver: The format driver for the output layer.
1326
- :param options: Options for the saving procedure.'''
1327
- raise NotImplementedError()
1328
-
1329
- @overload
1330
- def save_to(self, destination_path : aspose.gis.AbstractPath, destination_driver : aspose.gis.FileDriver, options : aspose.gis.SavingOptions) -> None:
1331
- '''Saves features sequence to layer.
1332
-
1333
- :param destination_path: Path to the output layer.
1334
- :param destination_driver: The format driver for the output layer.
1335
- :param options: Options for the saving procedure.'''
1336
- raise NotImplementedError()
1337
-
1338
- def get_extent(self) -> aspose.gis.Extent:
1339
- '''Gets a spatial extent of this layer.
1340
-
1341
- :returns: A spatial extent of this layer.'''
1342
- raise NotImplementedError()
1343
-
1344
- def where_greater(self, attribute_name : str, value : Any) -> aspose.gis.FeaturesSequence:
1345
- '''Selects features with attribute value greater than the provided value.
1346
-
1347
- :param attribute_name: Attribute to filter by.
1348
- :param value: Value to compare against.
1349
- :returns: Features with attribute value greater than the provided value.'''
1350
- raise NotImplementedError()
1351
-
1352
- def where_greater_or_equal(self, attribute_name : str, value : Any) -> aspose.gis.FeaturesSequence:
1353
- '''Selects features with attribute value greater or equal to the provided value.
1354
-
1355
- :param attribute_name: Attribute to filter by.
1356
- :param value: Value to compare against.
1357
- :returns: Features with attribute value greater or equal to the provided value.'''
1358
- raise NotImplementedError()
1359
-
1360
- def where_smaller(self, attribute_name : str, value : Any) -> aspose.gis.FeaturesSequence:
1361
- '''Selects features with attribute value smaller than the provided value.
1362
-
1363
- :param attribute_name: Attribute to filter by.
1364
- :param value: Value to compare against.
1365
- :returns: Features with attribute value smaller than the provided value.'''
1366
- raise NotImplementedError()
1367
-
1368
- def where_smaller_or_equal(self, attribute_name : str, value : Any) -> aspose.gis.FeaturesSequence:
1369
- '''Selects features with attribute value smaller or equal to the provided value.
1370
-
1371
- :param attribute_name: Attribute to filter by.
1372
- :param value: Value to compare against.
1373
- :returns: Features with attribute value smaller or equal to the provided value.'''
1374
- raise NotImplementedError()
1375
-
1376
- def where_equal(self, attribute_name : str, value : Any) -> aspose.gis.FeaturesSequence:
1377
- '''Selects features with attribute value equal to the provided value.
1378
-
1379
- :param attribute_name: Attribute to filter by.
1380
- :param value: Value to compare against.
1381
- :returns: Features with attribute value equal to the provided value.'''
1382
- raise NotImplementedError()
1383
-
1384
- def where_not_equal(self, attribute_name : str, value : Any) -> aspose.gis.FeaturesSequence:
1385
- '''Selects features with attribute value not equal to the provided value.
1386
-
1387
- :param attribute_name: Attribute to filter by.
1388
- :param value: Value to compare against.
1389
- :returns: Features with attribute value not equal to the provided value.'''
1390
- raise NotImplementedError()
1391
-
1392
- def where_null(self, attribute_name : str) -> aspose.gis.FeaturesSequence:
1393
- '''Selects features with attribute equal to null.
1394
-
1395
- :param attribute_name: Attribute to filter by.
1396
- :returns: Features with attribute value equal to null.'''
1397
- raise NotImplementedError()
1398
-
1399
- def where_not_null(self, attribute_name : str) -> aspose.gis.FeaturesSequence:
1400
- '''Selects features with attribute not equal to null.
1401
-
1402
- :param attribute_name: Attribute to filter by.
1403
- :returns: Features with attribute value not equal to null.'''
1404
- raise NotImplementedError()
1405
-
1406
- def where_set(self, attribute_name : str) -> aspose.gis.FeaturesSequence:
1407
- '''Selects features with attribute set.
1408
-
1409
- :param attribute_name: Attribute to filter by.
1410
- :returns: Features with set attribute value.'''
1411
- raise NotImplementedError()
1412
-
1413
- def where_unset(self, attribute_name : str) -> aspose.gis.FeaturesSequence:
1414
- '''Selects features where specified attribute is not set.
1415
-
1416
- :param attribute_name: Attribute to filter by.
1417
- :returns: Features with unset attribute value.'''
1418
- raise NotImplementedError()
1419
-
1420
- def split_to(self) -> List[aspose.gis.VectorLayer]:
1421
- '''Split features by geometry type.
1422
-
1423
- :returns: Layers with the same type of geometry.'''
1424
- raise NotImplementedError()
1425
-
1426
- @property
1427
- def spatial_reference_system(self) -> aspose.gis.spatialreferencing.SpatialReferenceSystem:
1428
- '''Gets spatial reference system of this features sequence.'''
1429
- raise NotImplementedError()
1430
-
1431
- @property
1432
- def attributes(self) -> aspose.gis.FeatureAttributeCollection:
1433
- '''Gets the collection of custom attributes for features in this :py:class:`aspose.gis.VectorLayer`.'''
1434
- raise NotImplementedError()
1435
-
1436
-
1437
- class FileDriver(Driver):
1438
- '''A driver for a specific file based format.'''
1439
-
1440
- @overload
1441
- def open_layer(self, path : str) -> aspose.gis.VectorLayer:
1442
- '''Opens the layer for reading.
1443
-
1444
- :param path: Path to the file.
1445
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1446
- raise NotImplementedError()
1447
-
1448
- @overload
1449
- def open_layer(self, path : aspose.gis.AbstractPath) -> aspose.gis.VectorLayer:
1450
- '''Opens the layer for reading.
1451
-
1452
- :param path: Path to the file.
1453
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1454
- raise NotImplementedError()
1455
-
1456
- @overload
1457
- def open_layer(self, path : str, options : aspose.gis.DriverOptions) -> aspose.gis.VectorLayer:
1458
- '''Opens the layer for reading.
1459
-
1460
- :param path: Path to the file.
1461
- :param options: Driver-specific options.
1462
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1463
- raise NotImplementedError()
1464
-
1465
- @overload
1466
- def open_layer(self, path : aspose.gis.AbstractPath, options : aspose.gis.DriverOptions) -> aspose.gis.VectorLayer:
1467
- '''Opens the layer for reading.
1468
-
1469
- :param path: Path to the file.
1470
- :param options: Driver-specific options.
1471
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1472
- raise NotImplementedError()
1473
-
1474
- @overload
1475
- def create_layer(self, path : str) -> aspose.gis.VectorLayer:
1476
- '''Creates the layer and opens it for appending.
1477
-
1478
- :param path: Path to the file.
1479
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1480
- raise NotImplementedError()
1481
-
1482
- @overload
1483
- def create_layer(self, path : aspose.gis.AbstractPath) -> aspose.gis.VectorLayer:
1484
- '''Creates the layer and opens it for appending.
1485
-
1486
- :param path: Path to the file.
1487
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1488
- raise NotImplementedError()
1489
-
1490
- @overload
1491
- def create_layer(self, path : str, options : aspose.gis.DriverOptions) -> aspose.gis.VectorLayer:
1492
- '''Creates the layer and opens it for appending.
1493
-
1494
- :param path: Path to the file.
1495
- :param options: Driver-specific options.
1496
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1497
- raise NotImplementedError()
1498
-
1499
- @overload
1500
- def create_layer(self, path : aspose.gis.AbstractPath, options : aspose.gis.DriverOptions) -> aspose.gis.VectorLayer:
1501
- '''Creates the layer and opens it for appending.
1502
-
1503
- :param path: Path to the file.
1504
- :param options: Driver-specific options.
1505
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1506
- raise NotImplementedError()
1507
-
1508
- @overload
1509
- def create_layer(self, path : str, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
1510
- '''Creates the layer and opens it for appending.
1511
-
1512
- :param path: Path to the file.
1513
- :param spatial_reference_system: Spatial reference system.
1514
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1515
- raise NotImplementedError()
1516
-
1517
- @overload
1518
- def create_layer(self, path : aspose.gis.AbstractPath, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
1519
- '''Creates the layer and opens it for appending.
1520
-
1521
- :param path: Path to the file.
1522
- :param spatial_reference_system: Spatial reference system.
1523
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1524
- raise NotImplementedError()
1525
-
1526
- @overload
1527
- def create_layer(self, path : str, options : aspose.gis.DriverOptions, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
1528
- '''Creates the layer and opens it for appending.
1529
-
1530
- :param path: Path to the file.
1531
- :param options: Driver-specific options.
1532
- :param spatial_reference_system: Spatial reference system.
1533
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1534
- raise NotImplementedError()
1535
-
1536
- @overload
1537
- def create_layer(self, path : aspose.gis.AbstractPath, options : aspose.gis.DriverOptions, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
1538
- '''Creates the layer and opens it for appending.
1539
-
1540
- :param path: Path to the file.
1541
- :param options: Driver-specific options.
1542
- :param spatial_reference_system: Spatial reference system.
1543
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1544
- raise NotImplementedError()
1545
-
1546
- @overload
1547
- def edit_layer(self, path : str, options : aspose.gis.DriverOptions) -> aspose.gis.VectorLayer:
1548
- '''Opens a layer for editing.
1549
-
1550
- :param path: Path to the file.
1551
- :param options: Driver-specific options.
1552
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1553
- raise NotImplementedError()
1554
-
1555
- @overload
1556
- def edit_layer(self, path : aspose.gis.AbstractPath, options : aspose.gis.DriverOptions) -> aspose.gis.VectorLayer:
1557
- '''Opens a layer for editing.
1558
-
1559
- :param path: Path to the file.
1560
- :param options: Driver-specific options.
1561
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
1562
- raise NotImplementedError()
1563
-
1564
- @overload
1565
- def open_dataset(self, path : str) -> aspose.gis.Dataset:
1566
- '''Opens the dataset.
1567
-
1568
- :param path: Path to the dataset.
1569
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
1570
- raise NotImplementedError()
1571
-
1572
- @overload
1573
- def open_dataset(self, path : aspose.gis.AbstractPath) -> aspose.gis.Dataset:
1574
- '''Opens the dataset.
1575
-
1576
- :param path: Path to the dataset.
1577
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
1578
- raise NotImplementedError()
1579
-
1580
- @overload
1581
- def open_dataset(self, path : str, options : aspose.gis.DriverOptions) -> aspose.gis.Dataset:
1582
- '''Opens the dataset.
1583
-
1584
- :param path: Path to the dataset.
1585
- :param options: Driver-specific options.
1586
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
1587
- raise NotImplementedError()
1588
-
1589
- @overload
1590
- def open_dataset(self, path : aspose.gis.AbstractPath, options : aspose.gis.DriverOptions) -> aspose.gis.Dataset:
1591
- '''Opens the dataset.
1592
-
1593
- :param path: Path to the dataset.
1594
- :param options: Driver-specific options.
1595
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
1596
- raise NotImplementedError()
1597
-
1598
- @overload
1599
- def create_dataset(self, path : str) -> aspose.gis.Dataset:
1600
- '''Creates a dataset.
1601
-
1602
- :param path: Path to the dataset.
1603
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
1604
- raise NotImplementedError()
1605
-
1606
- @overload
1607
- def create_dataset(self, path : aspose.gis.AbstractPath) -> aspose.gis.Dataset:
1608
- '''Creates a dataset.
1609
-
1610
- :param path: Path to the dataset.
1611
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
1612
- raise NotImplementedError()
1613
-
1614
- @overload
1615
- def create_dataset(self, path : str, options : aspose.gis.DriverOptions) -> aspose.gis.Dataset:
1616
- '''Creates a dataset.
1617
-
1618
- :param path: Path to the dataset.
1619
- :param options: Driver-specific options.
1620
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
1621
- raise NotImplementedError()
1622
-
1623
- @overload
1624
- def create_dataset(self, path : aspose.gis.AbstractPath, options : aspose.gis.DriverOptions) -> aspose.gis.Dataset:
1625
- '''Creates a dataset.
1626
-
1627
- :param path: Path to the dataset.
1628
- :param options: Driver-specific options.
1629
- :returns: An instance of :py:class:`aspose.gis.Dataset`.'''
1630
- raise NotImplementedError()
1631
-
1632
- def supports_spatial_reference_system(self, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> bool:
1633
- '''Determines, whether specified spatial reference system is supported by the driver.
1634
-
1635
- :param spatial_reference_system: Spatial reference system.
1636
- :returns: Boolean value, indicating whether specified spatial reference system is supported by the driver.
1637
- is considered supported by any driver.'''
1638
- raise NotImplementedError()
1639
-
1640
- @property
1641
- def can_create_layers(self) -> bool:
1642
- '''Gets a value indicating whether this driver can create vector layers.'''
1643
- raise NotImplementedError()
1644
-
1645
- @property
1646
- def can_open_layers(self) -> bool:
1647
- '''Gets a value indicating whether this driver can open vector layers.'''
1648
- raise NotImplementedError()
1649
-
1650
- @property
1651
- def can_open_datasets(self) -> bool:
1652
- '''Gets a value indicating whether this driver can open datasets.'''
1653
- raise NotImplementedError()
1654
-
1655
- @property
1656
- def can_create_datasets(self) -> bool:
1657
- '''Gets a value indicating whether this driver can create datasets.'''
1658
- raise NotImplementedError()
1659
-
1660
-
1661
- class GeoConvert:
1662
- '''Converts coordinates to/from the different formats.'''
1663
-
1664
- @overload
1665
- @staticmethod
1666
- def as_point_text(latitude : float, longitude : float, format : aspose.gis.PointFormats) -> str:
1667
- '''Returns the calculated position as a string in the specified format.
1668
-
1669
- :param latitude: Position latitude.
1670
- :param longitude: Position longitude.
1671
- :param format: Format of the result.
1672
- :returns: Position as string.'''
1673
- raise NotImplementedError()
1674
-
1675
- @overload
1676
- @staticmethod
1677
- def as_point_text(point : aspose.gis.geometries.IPoint, format : aspose.gis.PointFormats) -> str:
1678
- '''Returns the calculated position as a string in the specified format.
1679
-
1680
- :param point: IPoint object.
1681
- :param format: Format of the result.
1682
- :returns: Position as string.'''
1683
- raise NotImplementedError()
1684
-
1685
- @staticmethod
1686
- def parse_point_text(text : str) -> aspose.gis.geometries.IPoint:
1687
- '''Converts the string that contains сoordinates to IPoint object.
1688
-
1689
- :param text: A string that contains coordinates to convert.
1690
- The string should contain both coordinate latitude and longitude.
1691
- Coordinates should be separated by whitespace, by comma or by semicolon.
1692
- :returns: IPoint object with coordinates that are equivalent to the input string.'''
1693
- raise NotImplementedError()
1694
-
1695
- @staticmethod
1696
- def try_parse_point_text(text : str, point : List[aspose.gis.geometries.IPoint]) -> bool:
1697
- '''Converts the string that contains сoordinates to IPoint object. A return value indicates whether the conversion succeeded or failed.
1698
-
1699
- :param text: A string that contains coordinates to convert.
1700
- The string should contain both coordinate latitude and longitude.
1701
- Coordinates should be separated by whitespace, by comma or by semicolon.
1702
- :param point: When this method returns, contains the IPoint object with parsed coordinates, if the conversion succeeded, or null if the conversion failed.
1703
- :returns: True if text was parsed successfully, otherwise False.'''
1704
- raise NotImplementedError()
1705
-
1706
-
1707
- class GisException:
1708
- '''The exception that is thrown when an error occurs during GIS data processing.'''
1709
-
1710
-
1711
- class IAttributesConverter:
1712
- '''A custom converter for layer attributes.'''
1713
-
1714
- def modify_attribute(self, attribute : aspose.gis.FeatureAttribute, actions : aspose.gis.AttributesConverterActions) -> None:
1715
- '''Adjusts a :py:class:`aspose.gis.FeatureAttribute` as necessary for the target layer.
1716
-
1717
- :param attribute: A copy of an attribute of the source layer.
1718
- :param actions: Specifies optional actions with attributes of the destination layer.
1719
- For example, allows us to exclude our attribute.'''
1720
- raise NotImplementedError()
1721
-
1722
-
1723
- class IFeatureStyle:
1724
- '''The interface root class of the feature styles hierarchy.'''
1725
-
1726
-
1727
- class License:
1728
- '''Provides methods to license the component.'''
1729
-
1730
- @overload
1731
- def set_license(self, license_name : str) -> None:
1732
- '''Licenses the component.'''
1733
- raise NotImplementedError()
1734
-
1735
- @overload
1736
- def set_license(self, stream : io.RawIOBase) -> None:
1737
- '''Licenses the component.
1738
-
1739
- :param stream: A stream that contains the license.'''
1740
- raise NotImplementedError()
1741
-
1742
-
1743
- class Metered:
1744
- '''Provides methods to set metered key.'''
1745
-
1746
- @staticmethod
1747
- def set_metered_key(public_key : str, private_key : str) -> None:
1748
- '''Sets metered public and private key
1749
-
1750
- :param public_key: public key
1751
- :param private_key: private key'''
1752
- raise NotImplementedError()
1753
-
1754
- @staticmethod
1755
- def get_consumption_quantity() -> float:
1756
- '''Gets consumption file size
1757
-
1758
- :returns: consumption quantity'''
1759
- raise NotImplementedError()
1760
-
1761
- @staticmethod
1762
- def reset_metered_key() -> None:
1763
- '''Removes previously setup license'''
1764
- raise NotImplementedError()
1765
-
1766
- @staticmethod
1767
- def get_consumption_credit() -> float:
1768
- '''Gets consumption credit
1769
-
1770
- :returns: consumption quantity'''
1771
- raise NotImplementedError()
1772
-
1773
-
1774
- class MultiStreamPath(AbstractPath):
1775
- '''This class works with formats which contains several files.'''
1776
-
1777
- @staticmethod
1778
- def from_local_path(path : str) -> aspose.gis.AbstractPath:
1779
- '''Creates an :py:class:`aspose.gis.AbstractPath` that represents a location on the local filesystem.
1780
-
1781
- :param path: A path on the local filesystem, like ``"C:\\file.shp"`` or ``"D:\\directory\\"``.
1782
- :returns: An :py:class:`aspose.gis.AbstractPath` that represents the location defined by the ``path``.'''
1783
- raise NotImplementedError()
1784
-
1785
- @staticmethod
1786
- def from_stream(stream : io.RawIOBase) -> aspose.gis.AbstractPath:
1787
- '''Creates an :py:class:`aspose.gis.AbstractPath` from a :py:class:`io.RawIOBase`.
1788
-
1789
- :param stream: A stream to create an :py:class:`aspose.gis.AbstractPath` from. ``Aspose.GIS`` does not dispose the stream.
1790
- :returns: An instance of :py:class:`aspose.gis.AbstractPath` with the specified :py:class:`io.RawIOBase` as its content.'''
1791
- raise NotImplementedError()
1792
-
1793
- def is_file(self) -> bool:
1794
- '''Gets a value indicating whether this path points to an existing file that can be opened for reading.
1795
-
1796
- :returns: if location points to a file; otherwise.'''
1797
- raise NotImplementedError()
1798
-
1799
- def delete(self) -> None:
1800
- '''Deletes a file pointed to by this path.'''
1801
- raise NotImplementedError()
1802
-
1803
- def open(self, access : System.IO.FileAccess) -> io.RawIOBase:
1804
- '''Abstracts a set of open streaming multi-file formats a path for accessing data.
1805
-
1806
- :param access: Specifies a subset of operations that can be performed on a :py:class:`io.RawIOBase`.
1807
- :returns: This can be either a :py:class:`System.IO.MemoryStream` or the stream originally passed by the client.'''
1808
- raise NotImplementedError()
1809
-
1810
- def list_directory(self) -> Iterable[aspose.gis.AbstractPath]:
1811
- '''Returns paths located inside this ``AbstractPath``, if it\'s a directory.
1812
-
1813
- :returns: Paths located inside this ``AbstractPath``.'''
1814
- raise NotImplementedError()
1815
-
1816
- def combine(self, location : str) -> aspose.gis.AbstractPath:
1817
- '''Combines this :py:class:`aspose.gis.AbstractPath` with specified path components.
1818
-
1819
- :param location: A path component to append to this :py:class:`aspose.gis.AbstractPath`.
1820
- :returns: A new :py:class:`aspose.gis.AbstractPath` pointing to a :py:attr:`aspose.gis.AbstractPath.location` that is a combination of locations of this :py:class:`aspose.gis.AbstractPath` and
1821
- the argument.'''
1822
- raise NotImplementedError()
1823
-
1824
- def with_extension(self, new_extension : str) -> aspose.gis.AbstractPath:
1825
- '''Returns a new :py:class:`aspose.gis.AbstractPath` with the file extension changed to the specified value.
1826
-
1827
- :param new_extension: A new extension.
1828
- :returns: A new :py:class:`aspose.gis.AbstractPath`, that points to a file in the same directory, but with a new extension.'''
1829
- raise NotImplementedError()
1830
-
1831
- def get_file_name(self) -> str:
1832
- '''Returns the file name and extension of this :py:class:`aspose.gis.AbstractPath`.
1833
-
1834
- :returns: The characters after the last :py:attr:`aspose.gis.AbstractPath.separator` character in the :py:attr:`aspose.gis.AbstractPath.location`. If the
1835
- last character is the :py:attr:`aspose.gis.AbstractPath.separator` character, an empty string is returned. If there is no
1836
- :py:attr:`aspose.gis.AbstractPath.separator` characters in the :py:attr:`aspose.gis.AbstractPath.location`, the :py:attr:`aspose.gis.AbstractPath.location` itself
1837
- is returned.'''
1838
- raise NotImplementedError()
1839
-
1840
- def get_file_name_without_extension(self) -> str:
1841
- '''Returns the file name of this :py:class:`aspose.gis.AbstractPath` without the extension.
1842
-
1843
- :returns: The string returned by :py:func:`aspose.gis.AbstractPath.get_file_name` minus the last period and all characters following it.'''
1844
- raise NotImplementedError()
1845
-
1846
- def get_extension(self) -> str:
1847
- '''Returns the extension of this :py:class:`aspose.gis.AbstractPath`.
1848
-
1849
- :returns: The extension of this :py:class:`aspose.gis.AbstractPath` (including the period ".") or
1850
- an empty string if the :py:class:`aspose.gis.AbstractPath` has no extension.'''
1851
- raise NotImplementedError()
1852
-
1853
- @property
1854
- def location(self) -> str:
1855
- '''Gets a string representation of the location of this ``AbstractPath``.'''
1856
- raise NotImplementedError()
1857
-
1858
- @property
1859
- def separator(self) -> str:
1860
- '''Gets a separator character used to separate directory levels of the :py:attr:`aspose.gis.MultiStreamPath.location` string.'''
1861
- raise NotImplementedError()
1862
-
1863
-
1864
- class NumericFormat:
1865
- ''':py:class:`aspose.gis.NumericFormat` are used to format common numeric types in text.'''
1866
-
1867
- @staticmethod
1868
- def general(precision : int) -> aspose.gis.NumericFormat:
1869
- '''Converts a number to the more compact of either fixed-point or scientific notation,
1870
- depending on the type of the number and whether a precision specifier is present. Recommended to use.
1871
-
1872
- :param precision: The precision defines the maximum number of significant digits that can appear in the result string.
1873
- If the precision is zero, the value "15" is used. The maximum available precision is "17".
1874
- :returns: The General Format Specifier.'''
1875
- raise NotImplementedError()
1876
-
1877
- @staticmethod
1878
- def flat(significant_digits : int) -> aspose.gis.NumericFormat:
1879
- '''Converts a number to a fixed-point text without a scientific notation.
1880
-
1881
- :param significant_digits: Number of significant digits. The maximum available precision is "308"
1882
- :returns: The Rounding Precision Specifier.'''
1883
- raise NotImplementedError()
1884
-
1885
- round_trip : aspose.gis.NumericFormat
1886
- '''Converts and attempts to ensure that a numeric value that is converted to
1887
- a string is parsed back into the same numeric value.'''
1888
-
1889
- class PrecisionModel:
1890
- ''':py:class:`aspose.gis.PrecisionModel` specifies a number of significant digits in a coordinate.'''
1891
-
1892
- @staticmethod
1893
- def rounding(significant_digits : int) -> aspose.gis.PrecisionModel:
1894
- '''Returns a rounding precision model.
1895
- According to rounding precision model only a limited number of digits are significant.
1896
-
1897
- :param significant_digits: Number of significant digits.
1898
- :returns: Rounding Precision model.'''
1899
- raise NotImplementedError()
1900
-
1901
- def equals(self, other : aspose.gis.PrecisionModel) -> bool:
1902
- '''Indicates whether the current object is equal to another object of the same type.
1903
-
1904
- :param other: An object to compare with this object.
1905
- :returns: true if the current object is equal to the ``other`` parameter; otherwise, false.'''
1906
- raise NotImplementedError()
1907
-
1908
- exact : aspose.gis.PrecisionModel
1909
- '''Returns an exact precision model.
1910
- According to exact precision model all digits in a double value are significant.'''
1911
- @property
1912
- def is_exact(self) -> bool:
1913
- '''Gets a value indicating whether this precision model is exact.'''
1914
- raise NotImplementedError()
1915
-
1916
- @property
1917
- def is_rounding(self) -> bool:
1918
- '''Gets a value indicating whether this precision model is rounding.'''
1919
- raise NotImplementedError()
1920
-
1921
- @property
1922
- def significant_digits(self) -> int:
1923
- '''Gets a number of significant digits in a precision model if it is rounding.'''
1924
- raise NotImplementedError()
1925
-
1926
-
1927
- class RasterDriver(Driver):
1928
- '''A driver for a specific raster based format.'''
1929
-
1930
- @overload
1931
- def open_layer(self, path : aspose.gis.AbstractPath, options : aspose.gis.RasterDriverOptions) -> aspose.gis.raster.RasterLayer:
1932
- '''Opens the layer for reading.
1933
-
1934
- :param path: Path to the file.
1935
- :param options: Driver-specific options.
1936
- :returns: An instance of :py:class:`aspose.gis.raster.RasterLayer`.'''
1937
- raise NotImplementedError()
1938
-
1939
- @overload
1940
- def open_layer(self, path : str) -> aspose.gis.raster.RasterLayer:
1941
- '''Opens the layer for reading.
1942
-
1943
- :param path: Path to the file.
1944
- :returns: An instance of :py:class:`aspose.gis.raster.RasterLayer`.'''
1945
- raise NotImplementedError()
1946
-
1947
- @overload
1948
- def open_layer(self, path : aspose.gis.AbstractPath) -> aspose.gis.raster.RasterLayer:
1949
- '''Opens the layer for reading.
1950
-
1951
- :param path: Path to the file.
1952
- :returns: An instance of :py:class:`aspose.gis.raster.RasterLayer`.'''
1953
- raise NotImplementedError()
1954
-
1955
- @overload
1956
- def open_layer(self, path : str, options : aspose.gis.RasterDriverOptions) -> aspose.gis.raster.RasterLayer:
1957
- '''Opens the layer for reading.
1958
-
1959
- :param path: Path to the file.
1960
- :param options: Driver-specific options.
1961
- :returns: An instance of :py:class:`aspose.gis.raster.RasterLayer`.'''
1962
- raise NotImplementedError()
1963
-
1964
- @property
1965
- def can_open_layers(self) -> bool:
1966
- '''Gets a value indicating whether this driver can open raster layers.'''
1967
- raise NotImplementedError()
1968
-
1969
-
1970
- class RasterDriverOptions(DriverOptions):
1971
- '''Options for a :py:class:`aspose.gis.RasterDriver`.'''
1972
-
1973
- @property
1974
- def validate_geometries_on_write(self) -> bool:
1975
- '''Determines if geometries should be validated when they are added to the layer.
1976
- If set to , :py:attr:`aspose.gis.geometries.Geometry.is_valid` is called for each
1977
- geometry when it\'s added to the layer, and if validation fails (:py:attr:`aspose.gis.geometries.Geometry.is_valid` is ), :py:class:`aspose.gis.GisException` is thrown.'''
1978
- raise NotImplementedError()
1979
-
1980
- @validate_geometries_on_write.setter
1981
- def validate_geometries_on_write(self, value : bool) -> None:
1982
- '''Determines if geometries should be validated when they are added to the layer.
1983
- If set to , :py:attr:`aspose.gis.geometries.Geometry.is_valid` is called for each
1984
- geometry when it\'s added to the layer, and if validation fails (:py:attr:`aspose.gis.geometries.Geometry.is_valid` is ), :py:class:`aspose.gis.GisException` is thrown.'''
1985
- raise NotImplementedError()
1986
-
1987
- @property
1988
- def write_polygons_as_lines(self) -> bool:
1989
- '''Determines if transformation of polygon or multipolygon to linestring is allowed. Defaults to .'''
1990
- raise NotImplementedError()
1991
-
1992
- @write_polygons_as_lines.setter
1993
- def write_polygons_as_lines(self, value : bool) -> None:
1994
- '''Determines if transformation of polygon or multipolygon to linestring is allowed. Defaults to .'''
1995
- raise NotImplementedError()
1996
-
1997
- @property
1998
- def create_midpoints(self) -> bool:
1999
- '''Determines if add a new point in the middle to each segment of geometry. Defaults to .'''
2000
- raise NotImplementedError()
2001
-
2002
- @create_midpoints.setter
2003
- def create_midpoints(self, value : bool) -> None:
2004
- '''Determines if add a new point in the middle to each segment of geometry. Defaults to .'''
2005
- raise NotImplementedError()
2006
-
2007
- @property
2008
- def close_linear_ring(self) -> bool:
2009
- '''Determines if close a unclosed :py:attr:`aspose.gis.geometries.GeometryType.LINEAR_RING` in each geometry. Defaults to .'''
2010
- raise NotImplementedError()
2011
-
2012
- @close_linear_ring.setter
2013
- def close_linear_ring(self, value : bool) -> None:
2014
- '''Determines if close a unclosed :py:attr:`aspose.gis.geometries.GeometryType.LINEAR_RING` in each geometry. Defaults to .'''
2015
- raise NotImplementedError()
2016
-
2017
- @property
2018
- def delete_near_points(self) -> bool:
2019
- '''Determines if delete near points in each geometry. Defaults to .'''
2020
- raise NotImplementedError()
2021
-
2022
- @delete_near_points.setter
2023
- def delete_near_points(self, value : bool) -> None:
2024
- '''Determines if delete near points in each geometry. Defaults to .'''
2025
- raise NotImplementedError()
2026
-
2027
- @property
2028
- def delete_near_points_distance(self) -> float:
2029
- '''Determines distance for :py:attr:`aspose.gis.DriverOptions.delete_near_points`. Defaults to .'''
2030
- raise NotImplementedError()
2031
-
2032
- @delete_near_points_distance.setter
2033
- def delete_near_points_distance(self, value : float) -> None:
2034
- '''Determines distance for :py:attr:`aspose.gis.DriverOptions.delete_near_points`. Defaults to .'''
2035
- raise NotImplementedError()
2036
-
2037
- @property
2038
- def simplify_segments(self) -> bool:
2039
- '''Determines if delete points lying on the same segment in each geometry. Defaults to .'''
2040
- raise NotImplementedError()
2041
-
2042
- @simplify_segments.setter
2043
- def simplify_segments(self, value : bool) -> None:
2044
- '''Determines if delete points lying on the same segment in each geometry. Defaults to .'''
2045
- raise NotImplementedError()
2046
-
2047
- @property
2048
- def simplify_segments_distance(self) -> float:
2049
- '''Determines distance for :py:attr:`aspose.gis.DriverOptions.simplify_segments`. Defaults to .'''
2050
- raise NotImplementedError()
2051
-
2052
- @simplify_segments_distance.setter
2053
- def simplify_segments_distance(self, value : float) -> None:
2054
- '''Determines distance for :py:attr:`aspose.gis.DriverOptions.simplify_segments`. Defaults to .'''
2055
- raise NotImplementedError()
2056
-
2057
- @property
2058
- def xy_precision_model(self) -> aspose.gis.PrecisionModel:
2059
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to X and Y coordinates
2060
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
2061
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
2062
- raise NotImplementedError()
2063
-
2064
- @xy_precision_model.setter
2065
- def xy_precision_model(self, value : aspose.gis.PrecisionModel) -> None:
2066
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to X and Y coordinates
2067
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
2068
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
2069
- raise NotImplementedError()
2070
-
2071
- @property
2072
- def z_precision_model(self) -> aspose.gis.PrecisionModel:
2073
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to Z coordinate
2074
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
2075
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
2076
- raise NotImplementedError()
2077
-
2078
- @z_precision_model.setter
2079
- def z_precision_model(self, value : aspose.gis.PrecisionModel) -> None:
2080
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to Z coordinate
2081
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
2082
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
2083
- raise NotImplementedError()
2084
-
2085
- @property
2086
- def m_precision_model(self) -> aspose.gis.PrecisionModel:
2087
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to M coordinate
2088
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
2089
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
2090
- raise NotImplementedError()
2091
-
2092
- @m_precision_model.setter
2093
- def m_precision_model(self, value : aspose.gis.PrecisionModel) -> None:
2094
- '''A :py:class:`aspose.gis.PrecisionModel` that will be applied to M coordinate
2095
- when geometries are added to the :py:class:`aspose.gis.VectorLayer` or when they are read from the :py:class:`aspose.gis.VectorLayer`.
2096
- The default value is :py:attr:`aspose.gis.PrecisionModel.exact`.'''
2097
- raise NotImplementedError()
2098
-
2099
- @property
2100
- def linearization_tolerance(self) -> float:
2101
- '''A tolerance to use to linearize curve geometries.'''
2102
- raise NotImplementedError()
2103
-
2104
- @linearization_tolerance.setter
2105
- def linearization_tolerance(self, value : float) -> None:
2106
- '''A tolerance to use to linearize curve geometries.'''
2107
- raise NotImplementedError()
2108
-
2109
-
2110
- class SavingOptions:
2111
- '''Options for saving :py:class:`aspose.gis.FeaturesSequence` to file.'''
2112
-
2113
- @property
2114
- def driver_options(self) -> aspose.gis.DriverOptions:
2115
- '''Driver-specific options for the output layer.'''
2116
- raise NotImplementedError()
2117
-
2118
- @driver_options.setter
2119
- def driver_options(self, value : aspose.gis.DriverOptions) -> None:
2120
- '''Driver-specific options for the output layer.'''
2121
- raise NotImplementedError()
2122
-
2123
- @property
2124
- def spatial_reference_system(self) -> aspose.gis.spatialreferencing.SpatialReferenceSystem:
2125
- '''Driver-specific options for the output layer.'''
2126
- raise NotImplementedError()
2127
-
2128
- @spatial_reference_system.setter
2129
- def spatial_reference_system(self, value : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> None:
2130
- '''Driver-specific options for the output layer.'''
2131
- raise NotImplementedError()
2132
-
2133
- @property
2134
- def attributes_converter(self) -> aspose.gis.IAttributesConverter:
2135
- '''A custom converter for attributes.
2136
- If not , it is called for each attribute of the source layer and is expected to change it if necessary.'''
2137
- raise NotImplementedError()
2138
-
2139
- @attributes_converter.setter
2140
- def attributes_converter(self, value : aspose.gis.IAttributesConverter) -> None:
2141
- '''A custom converter for attributes.
2142
- If not , it is called for each attribute of the source layer and is expected to change it if necessary.'''
2143
- raise NotImplementedError()
2144
-
2145
-
2146
- class VectorLayer(FeaturesSequence):
2147
- '''Represents a vector layer.
2148
- A vector layer is a collection of geographic features, stored in a file.'''
2149
-
2150
- @overload
2151
- def where_intersects(self, sequence : aspose.gis.FeaturesSequence) -> aspose.gis.FeaturesSequence:
2152
- '''Filters features based on the union of all geometries in other features sequence.
2153
-
2154
- :param sequence: Other features sequence.
2155
- :returns: Features that intersect with the union of all geometries in other features sequence.'''
2156
- raise NotImplementedError()
2157
-
2158
- @overload
2159
- def where_intersects(self, geometry : aspose.gis.geometries.IGeometry) -> aspose.gis.FeaturesSequence:
2160
- '''Filters features based on the provided geometry.
2161
-
2162
- :param geometry: Filter geometry.
2163
- :returns: Features that intersect with the provided geometry.'''
2164
- raise NotImplementedError()
2165
-
2166
- @overload
2167
- def where_intersects(self, extent : aspose.gis.Extent) -> aspose.gis.FeaturesSequence:
2168
- '''Filters features based on the extent.
2169
-
2170
- :param extent: Filter extent.
2171
- :returns: Features that intersect with the provided geometry.'''
2172
- raise NotImplementedError()
2173
-
2174
- @overload
2175
- def save_to(self, destination_path : str, destination_driver : aspose.gis.FileDriver) -> None:
2176
- '''Saves features sequence to layer.
2177
-
2178
- :param destination_path: Path to the output layer.
2179
- :param destination_driver: The format driver for the output layer.'''
2180
- raise NotImplementedError()
2181
-
2182
- @overload
2183
- def save_to(self, destination_path : aspose.gis.AbstractPath, destination_driver : aspose.gis.FileDriver) -> None:
2184
- '''Saves features sequence to layer.
2185
-
2186
- :param destination_path: Path to the output layer.
2187
- :param destination_driver: The format driver for the output layer.'''
2188
- raise NotImplementedError()
2189
-
2190
- @overload
2191
- def save_to(self, destination_path : str, destination_driver : aspose.gis.FileDriver, options : aspose.gis.SavingOptions) -> None:
2192
- '''Saves features sequence to layer.
2193
-
2194
- :param destination_path: Path to the output layer.
2195
- :param destination_driver: The format driver for the output layer.
2196
- :param options: Options for the saving procedure.'''
2197
- raise NotImplementedError()
2198
-
2199
- @overload
2200
- def save_to(self, destination_path : aspose.gis.AbstractPath, destination_driver : aspose.gis.FileDriver, options : aspose.gis.SavingOptions) -> None:
2201
- '''Saves features sequence to layer.
2202
-
2203
- :param destination_path: Path to the output layer.
2204
- :param destination_driver: The format driver for the output layer.
2205
- :param options: Options for the saving procedure.'''
2206
- raise NotImplementedError()
2207
-
2208
- @overload
2209
- @staticmethod
2210
- def open(path : str, driver : aspose.gis.FileDriver) -> aspose.gis.VectorLayer:
2211
- '''Open the layer for reading.
2212
-
2213
- :param path: Path to the file.
2214
- :param driver: Driver to use.
2215
- :returns: A read-only layer.'''
2216
- raise NotImplementedError()
2217
-
2218
- @overload
2219
- @staticmethod
2220
- def open(path : aspose.gis.AbstractPath, driver : aspose.gis.FileDriver) -> aspose.gis.VectorLayer:
2221
- '''Open the layer for reading.
2222
-
2223
- :param path: Path to the file.
2224
- :param driver: Driver to use.
2225
- :returns: A read-only layer.'''
2226
- raise NotImplementedError()
2227
-
2228
- @overload
2229
- @staticmethod
2230
- def open(path : str, driver : aspose.gis.FileDriver, options : aspose.gis.DriverOptions) -> aspose.gis.VectorLayer:
2231
- '''Open the layer for reading.
2232
-
2233
- :param path: Path to the file.
2234
- :param driver: Driver to use.
2235
- :param options: Driver-specific options.
2236
- :returns: A read-only layer.'''
2237
- raise NotImplementedError()
2238
-
2239
- @overload
2240
- @staticmethod
2241
- def open(path : aspose.gis.AbstractPath, driver : aspose.gis.FileDriver, options : aspose.gis.DriverOptions) -> aspose.gis.VectorLayer:
2242
- '''Open the layer for reading.
2243
-
2244
- :param path: Path to the file.
2245
- :param driver: Driver to use.
2246
- :param options: Driver-specific options.
2247
- :returns: A read-only layer.'''
2248
- raise NotImplementedError()
2249
-
2250
- @overload
2251
- @staticmethod
2252
- def create(path : str, driver : aspose.gis.FileDriver) -> aspose.gis.VectorLayer:
2253
- '''Creates the layer and opens it for adding new features.
2254
-
2255
- :param path: Path to the file.
2256
- :param driver: Driver to use.
2257
- :returns: A write-only layer.'''
2258
- raise NotImplementedError()
2259
-
2260
- @overload
2261
- @staticmethod
2262
- def create(path : str, driver : aspose.gis.FileDriver, options : aspose.gis.DriverOptions) -> aspose.gis.VectorLayer:
2263
- '''Creates the layer and opens it for adding new features.
2264
-
2265
- :param path: Path to the file.
2266
- :param driver: Driver to use.
2267
- :param options: Driver-specific options.
2268
- :returns: A write-only layer.'''
2269
- raise NotImplementedError()
2270
-
2271
- @overload
2272
- @staticmethod
2273
- def create(path : aspose.gis.AbstractPath, driver : aspose.gis.FileDriver) -> aspose.gis.VectorLayer:
2274
- '''Creates the layer and opens it for adding new features.
2275
-
2276
- :param path: Path to the file.
2277
- :param driver: Driver to use.
2278
- :returns: A write-only layer.'''
2279
- raise NotImplementedError()
2280
-
2281
- @overload
2282
- @staticmethod
2283
- def create(path : aspose.gis.AbstractPath, driver : aspose.gis.FileDriver, options : aspose.gis.DriverOptions) -> aspose.gis.VectorLayer:
2284
- '''Creates the layer and opens it for adding new features.
2285
-
2286
- :param path: Path to the file.
2287
- :param driver: Driver to use.
2288
- :param options: Driver-specific options.
2289
- :returns: A write-only layer.'''
2290
- raise NotImplementedError()
2291
-
2292
- @overload
2293
- @staticmethod
2294
- def create(path : str, driver : aspose.gis.FileDriver, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
2295
- '''Creates the layer and opens it for appending.
2296
-
2297
- :param path: Path to the file.
2298
- :param driver: Driver to use.
2299
- :param spatial_reference_system: Spatial reference system.
2300
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
2301
- raise NotImplementedError()
2302
-
2303
- @overload
2304
- @staticmethod
2305
- def create(path : aspose.gis.AbstractPath, driver : aspose.gis.FileDriver, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
2306
- '''Creates the layer and opens it for appending.
2307
-
2308
- :param path: Path to the file.
2309
- :param driver: Driver to use.
2310
- :param spatial_reference_system: Spatial reference system.
2311
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
2312
- raise NotImplementedError()
2313
-
2314
- @overload
2315
- @staticmethod
2316
- def create(path : str, driver : aspose.gis.FileDriver, options : aspose.gis.DriverOptions, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
2317
- '''Creates the layer and opens it for appending.
2318
-
2319
- :param path: Path to the file.
2320
- :param driver: Driver to use.
2321
- :param options: Driver-specific options.
2322
- :param spatial_reference_system: Spatial reference system.
2323
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
2324
- raise NotImplementedError()
2325
-
2326
- @overload
2327
- @staticmethod
2328
- def create(path : aspose.gis.AbstractPath, driver : aspose.gis.FileDriver, options : aspose.gis.DriverOptions, spatial_reference_system : aspose.gis.spatialreferencing.SpatialReferenceSystem) -> aspose.gis.VectorLayer:
2329
- '''Creates the layer and opens it for appending.
2330
-
2331
- :param path: Path to the file.
2332
- :param driver: Driver to use.
2333
- :param options: Driver-specific options.
2334
- :param spatial_reference_system: Spatial reference system.
2335
- :returns: An instance of :py:class:`aspose.gis.VectorLayer`.'''
2336
- raise NotImplementedError()
2337
-
2338
- @overload
2339
- @staticmethod
2340
- def convert(source_path : str, source_driver : aspose.gis.FileDriver, destination_path : str, destination_driver : aspose.gis.FileDriver) -> None:
2341
- '''Convert a layer to a different format.
2342
-
2343
- :param source_path: Path to the layer that will be converted.
2344
- :param source_driver: The format driver for the source layer.
2345
- :param destination_path: Path to the layer that will created as a result of conversion.
2346
- :param destination_driver: The format driver for the destination layer.'''
2347
- raise NotImplementedError()
2348
-
2349
- @overload
2350
- @staticmethod
2351
- def convert(source_path : aspose.gis.AbstractPath, source_driver : aspose.gis.FileDriver, destination_path : aspose.gis.AbstractPath, destination_driver : aspose.gis.FileDriver) -> None:
2352
- '''Convert a layer to a different format.
2353
-
2354
- :param source_path: Path to the layer that will be converted.
2355
- :param source_driver: The format driver for the source layer.
2356
- :param destination_path: Path to the layer that will created as a result of conversion.
2357
- :param destination_driver: The format driver for the destination layer.'''
2358
- raise NotImplementedError()
2359
-
2360
- @overload
2361
- @staticmethod
2362
- def convert(source_path : str, source_driver : aspose.gis.FileDriver, destination_path : str, destination_driver : aspose.gis.FileDriver, options : aspose.gis.ConversionOptions) -> None:
2363
- '''Convert a layer to a different format.
2364
-
2365
- :param source_path: Path to the layer that will be converted.
2366
- :param source_driver: The format driver for the source layer.
2367
- :param destination_path: Path to the layer that will created as a result of conversion.
2368
- :param destination_driver: The format driver for the destination layer.
2369
- :param options: Options for the conversion procedure.'''
2370
- raise NotImplementedError()
2371
-
2372
- @overload
2373
- @staticmethod
2374
- def convert(source_path : aspose.gis.AbstractPath, source_driver : aspose.gis.FileDriver, destination_path : aspose.gis.AbstractPath, destination_driver : aspose.gis.FileDriver, options : aspose.gis.ConversionOptions) -> None:
2375
- '''Convert a layer to a different format.
2376
-
2377
- :param source_path: Path to the layer that will be converted.
2378
- :param source_driver: The format driver for the source layer.
2379
- :param destination_path: Path to the layer that will created as a result of conversion.
2380
- :param destination_driver: The format driver for the destination layer.
2381
- :param options: Options for the conversion procedure.'''
2382
- raise NotImplementedError()
2383
-
2384
- @overload
2385
- def copy_attributes(self, features_sequence : aspose.gis.FeaturesSequence) -> None:
2386
- '''Copies attributes of other :py:class:`aspose.gis.VectorLayer` to this one.
2387
-
2388
- :param features_sequence: The features sequence to copy attributes from.'''
2389
- raise NotImplementedError()
2390
-
2391
- @overload
2392
- def copy_attributes(self, features_sequence : aspose.gis.FeaturesSequence, converter : aspose.gis.IAttributesConverter) -> None:
2393
- '''Copies attributes of other :py:class:`aspose.gis.VectorLayer` to this one.
2394
-
2395
- :param features_sequence: The features sequence to copy attributes from.
2396
- :param converter: An instance of custom :py:class:`aspose.gis.IAttributesConverter` that will process the attributes one by one.'''
2397
- raise NotImplementedError()
2398
-
2399
- @overload
2400
- def add(self, feature : aspose.gis.Feature) -> None:
2401
- '''Adds a new feature to the layer, if supported by the :py:class:`aspose.gis.VectorLayer`\'s :py:attr:`aspose.gis.VectorLayer.driver`.
2402
-
2403
- :param feature: The feature to add.'''
2404
- raise NotImplementedError()
2405
-
2406
- @overload
2407
- def add(self, feature : aspose.gis.Feature, style : aspose.gis.IFeatureStyle) -> None:
2408
- '''Adds a new feature with the specified style to the layer, if supported by the :py:class:`aspose.gis.VectorLayer`\'s :py:attr:`aspose.gis.VectorLayer.driver`.
2409
-
2410
- :param feature: The feature to add.
2411
- :param style: The feature style. Use to indicate missing style.'''
2412
- raise NotImplementedError()
2413
-
2414
- @overload
2415
- def nearest_to(self, x : float, y : float) -> aspose.gis.Feature:
2416
- '''Gets the nearest feature to the provided coordinate.
2417
-
2418
- :param x: X of the coordinate.
2419
- :param y: Y of the coordinate.
2420
- :returns: The nearest feature to the provided coordinate.'''
2421
- raise NotImplementedError()
2422
-
2423
- @overload
2424
- def nearest_to(self, point : aspose.gis.geometries.IPoint) -> aspose.gis.Feature:
2425
- '''Gets the nearest feature to the provided point.
2426
-
2427
- :param point: The point.
2428
- :returns: The nearest feature to the provided point.'''
2429
- raise NotImplementedError()
2430
-
2431
- @overload
2432
- def use_attributes_index(self, index_path : str, attribute_name : str, force_rebuild : bool) -> None:
2433
- '''Loads attribute index to speed up filtering by attributes value in filter methods like :py:func:`aspose.gis.FeaturesSequence.WhereGreater``1`.
2434
- If index does not exist creates it first. Use ``forceRebuild`` to force index recreation.
2435
-
2436
- :param index_path: Path to the index file.
2437
- :param attribute_name: Name of the attribute to build index on.
2438
- :param force_rebuild: Whether to recreate index even if it already exists.'''
2439
- raise NotImplementedError()
2440
-
2441
- @overload
2442
- def use_attributes_index(self, index_path : aspose.gis.AbstractPath, attribute_name : str, force_rebuild : bool) -> None:
2443
- '''Loads attribute index to speed up filtering by attributes value in filter methods like :py:func:`aspose.gis.FeaturesSequence.WhereGreater``1`.
2444
- If index does not exist creates it first. Use ``forceRebuild`` to force index recreation.
2445
-
2446
- :param index_path: Path to the index file.
2447
- :param attribute_name: Name of the attribute to build index on.
2448
- :param force_rebuild: Whether to recreate index even if it already exists.'''
2449
- raise NotImplementedError()
2450
-
2451
- @overload
2452
- def use_spatial_index(self, index_path : str, force_rebuild : bool) -> None:
2453
- '''Loads spatial index to speed up filtering by attributes value in filter methods like :py:func:`aspose.gis.FeaturesSequence.where_intersects`
2454
- and :py:func:`aspose.gis.VectorLayer.nearest_to`.
2455
- If index does not exist creates it first. Use ``forceRebuild`` to force index recreation.
2456
-
2457
- :param index_path: Path to the index file.
2458
- :param force_rebuild: Whether to recreate index even if it already exists.'''
2459
- raise NotImplementedError()
2460
-
2461
- @overload
2462
- def use_spatial_index(self, index_path : aspose.gis.AbstractPath, force_rebuild : bool) -> None:
2463
- '''Loads spatial index to speed up filtering by attributes value in filter methods like :py:func:`aspose.gis.FeaturesSequence.where_intersects`
2464
- and :py:func:`aspose.gis.VectorLayer.nearest_to`.
2465
- If index does not exist creates it first. Use ``forceRebuild`` to force index recreation.
2466
-
2467
- :param index_path: Path to the index file.
2468
- :param force_rebuild: Whether to recreate index even if it already exists.'''
2469
- raise NotImplementedError()
2470
-
2471
- def get_extent(self) -> aspose.gis.Extent:
2472
- '''Gets a spatial extent of this layer.
2473
-
2474
- :returns: A spatial extent of this layer.'''
2475
- raise NotImplementedError()
2476
-
2477
- def where_greater(self, attribute_name : str, value : Any) -> aspose.gis.FeaturesSequence:
2478
- '''Selects features with attribute value greater than the provided value.
2479
-
2480
- :param attribute_name: Attribute to filter by.
2481
- :param value: Value to compare against.
2482
- :returns: Features with attribute value greater than the provided value.'''
2483
- raise NotImplementedError()
2484
-
2485
- def where_greater_or_equal(self, attribute_name : str, value : Any) -> aspose.gis.FeaturesSequence:
2486
- '''Selects features with attribute value greater or equal to the provided value.
2487
-
2488
- :param attribute_name: Attribute to filter by.
2489
- :param value: Value to compare against.
2490
- :returns: Features with attribute value greater or equal to the provided value.'''
2491
- raise NotImplementedError()
2492
-
2493
- def where_smaller(self, attribute_name : str, value : Any) -> aspose.gis.FeaturesSequence:
2494
- '''Selects features with attribute value smaller than the provided value.
2495
-
2496
- :param attribute_name: Attribute to filter by.
2497
- :param value: Value to compare against.
2498
- :returns: Features with attribute value smaller than the provided value.'''
2499
- raise NotImplementedError()
2500
-
2501
- def where_smaller_or_equal(self, attribute_name : str, value : Any) -> aspose.gis.FeaturesSequence:
2502
- '''Selects features with attribute value smaller or equal to the provided value.
2503
-
2504
- :param attribute_name: Attribute to filter by.
2505
- :param value: Value to compare against.
2506
- :returns: Features with attribute value smaller or equal to the provided value.'''
2507
- raise NotImplementedError()
2508
-
2509
- def where_equal(self, attribute_name : str, value : Any) -> aspose.gis.FeaturesSequence:
2510
- '''Selects features with attribute value equal to the provided value.
2511
-
2512
- :param attribute_name: Attribute to filter by.
2513
- :param value: Value to compare against.
2514
- :returns: Features with attribute value equal to the provided value.'''
2515
- raise NotImplementedError()
2516
-
2517
- def where_not_equal(self, attribute_name : str, value : Any) -> aspose.gis.FeaturesSequence:
2518
- '''Selects features with attribute value not equal to the provided value.
2519
-
2520
- :param attribute_name: Attribute to filter by.
2521
- :param value: Value to compare against.
2522
- :returns: Features with attribute value not equal to the provided value.'''
2523
- raise NotImplementedError()
2524
-
2525
- def where_null(self, attribute_name : str) -> aspose.gis.FeaturesSequence:
2526
- '''Selects features with attribute equal to null.
2527
-
2528
- :param attribute_name: Attribute to filter by.
2529
- :returns: Features with attribute value equal to null.'''
2530
- raise NotImplementedError()
2531
-
2532
- def where_not_null(self, attribute_name : str) -> aspose.gis.FeaturesSequence:
2533
- '''Selects features with attribute not equal to null.
2534
-
2535
- :param attribute_name: Attribute to filter by.
2536
- :returns: Features with attribute value not equal to null.'''
2537
- raise NotImplementedError()
2538
-
2539
- def where_set(self, attribute_name : str) -> aspose.gis.FeaturesSequence:
2540
- '''Selects features with attribute set.
2541
-
2542
- :param attribute_name: Attribute to filter by.
2543
- :returns: Features with set attribute value.'''
2544
- raise NotImplementedError()
2545
-
2546
- def where_unset(self, attribute_name : str) -> aspose.gis.FeaturesSequence:
2547
- '''Selects features where specified attribute is not set.
2548
-
2549
- :param attribute_name: Attribute to filter by.
2550
- :returns: Features with unset attribute value.'''
2551
- raise NotImplementedError()
2552
-
2553
- def split_to(self) -> List[aspose.gis.VectorLayer]:
2554
- '''Split features by geometry type.
2555
-
2556
- :returns: Layers with the same type of geometry.'''
2557
- raise NotImplementedError()
2558
-
2559
- def construct_feature(self) -> aspose.gis.Feature:
2560
- '''Creates (but does not add to the layer) a new feature with attributes matching the collection of attributes of this layer.
2561
- When done with setting data for the feature, use :py:func:`aspose.gis.VectorLayer.add` to add the feature to the layer.
2562
-
2563
- :returns: A new feature.'''
2564
- raise NotImplementedError()
2565
-
2566
- def remove_at(self, index : int) -> None:
2567
- '''Remove the :py:class:`aspose.gis.Feature` at the specified index.
2568
-
2569
- :param index: The index of the feature.'''
2570
- raise NotImplementedError()
2571
-
2572
- def replace_at(self, index : int, feature : aspose.gis.Feature) -> None:
2573
- '''Replace the :py:class:`aspose.gis.Feature` at the specified index.
2574
-
2575
- :param index: The index of the feature.
2576
- :param feature: The feature to set.'''
2577
- raise NotImplementedError()
2578
-
2579
- def join(self, layer : aspose.gis.VectorLayer, options : aspose.gis.relationship.joins.JoinOptions) -> aspose.gis.VectorLayer:
2580
- '''Joins a layer to the current layer.
2581
-
2582
- :param layer: A layer to join.
2583
- :param options: Join parameters.
2584
- :returns: A new layer as a result of join two layers.'''
2585
- raise NotImplementedError()
2586
-
2587
- def join_by_geometry(self, layer : aspose.gis.VectorLayer, options : aspose.gis.relationship.joins.JoinByGeometryOptions) -> aspose.gis.VectorLayer:
2588
- '''Joins a layer to the current layer by geometry.
2589
-
2590
- :param layer: A layer to join.
2591
- :param options: Join parameters.
2592
- :returns: A new layer as a result of join two layers.'''
2593
- raise NotImplementedError()
2594
-
2595
- def as_in_memory(self) -> aspose.gis.VectorLayer:
2596
- '''Create a layer clon as the InMemory format.
2597
-
2598
- :returns: The InMemory Layer.'''
2599
- raise NotImplementedError()
2600
-
2601
- @property
2602
- def spatial_reference_system(self) -> aspose.gis.spatialreferencing.SpatialReferenceSystem:
2603
- '''Gets spatial reference system of this features sequence.'''
2604
- raise NotImplementedError()
2605
-
2606
- @property
2607
- def attributes(self) -> aspose.gis.FeatureAttributeCollection:
2608
- '''Gets the collection of custom attributes for features in this :py:class:`aspose.gis.VectorLayer`.'''
2609
- raise NotImplementedError()
2610
-
2611
- @property
2612
- def count(self) -> int:
2613
- '''Gets the number of features in this layer.'''
2614
- raise NotImplementedError()
2615
-
2616
- @property
2617
- def geometry_type(self) -> aspose.gis.geometries.GeometryType:
2618
- '''Gets the type of the geometry for the layer.'''
2619
- raise NotImplementedError()
2620
-
2621
- @property
2622
- def driver(self) -> aspose.gis.Driver:
2623
- '''Gets the :py:attr:`aspose.gis.VectorLayer.driver` that instantiated this layer.'''
2624
- raise NotImplementedError()
2625
-
2626
- def __getitem__(self, key : int) -> aspose.gis.Feature:
2627
- '''Gets the :py:class:`aspose.gis.Feature` at the specified index.'''
2628
- raise NotImplementedError()
2629
-
2630
-
2631
- class AttributeDataType:
2632
- '''The data type of a feature attribute.'''
2633
-
2634
- INTEGER : AttributeDataType
2635
- '''32-bit integer.'''
2636
- LONG : AttributeDataType
2637
- '''64-bit integer.'''
2638
- GUID : AttributeDataType
2639
- '''A globally unique identifier (GUID).'''
2640
- BOOLEAN : AttributeDataType
2641
- '''Boolean (true/false) value.'''
2642
- DOUBLE : AttributeDataType
2643
- '''Double-precision real number.'''
2644
- DATE : AttributeDataType
2645
- '''Date value.'''
2646
- TIME : AttributeDataType
2647
- '''Time value.'''
2648
- DATE_TIME : AttributeDataType
2649
- '''Date and time value.'''
2650
- STRING : AttributeDataType
2651
- '''String value.'''
2652
-
2653
- class AutoIds:
2654
- '''Auto-generate ids.'''
2655
-
2656
- NONE : AutoIds
2657
- '''Hide Auto Ids.'''
2658
- NUMBER : AutoIds
2659
- '''Increment Number Ids.'''
2660
- GUID : AutoIds
2661
- '''Generate Guid Ids.'''
2662
-
2663
- class PointFormats:
2664
- ''':py:class:`aspose.gis.PointFormats` are used to convert coordinates in text.'''
2665
-
2666
- DECIMAL_DEGREES : PointFormats
2667
- '''Decimal Degrees (DD) format.'''
2668
- DEGREE_MINUTES_SECONDS : PointFormats
2669
- '''Degree Minutes Seconds (DMS) format.'''
2670
- DEGREE_DECIMAL_MINUTES : PointFormats
2671
- '''Degree Decimal Minutes (DDM) format.'''
2672
- GEO_REF : PointFormats
2673
- '''World Geographic Reference System.'''
2674
- MGRS : PointFormats
2675
- '''Military Grid Reference System with WGS 84 datum.'''
2676
- USNG : PointFormats
2677
- '''United States National Grid with WGS 84 datum.'''
2678
- GARS : PointFormats
2679
- '''Global Area Reference System'''
2680
- PLUS_CODE : PointFormats
2681
- '''The Open Location Code (OLC) or Plus Code'''
2682
- MAIDENHEAD : PointFormats
2683
- '''The Maidenhead Locator System (a.k.a. QTH Locator and IARU Locator)'''
2684
- UTM : PointFormats
2685
- '''Universal Transverse Mercator'''
2686
- UPS : PointFormats
2687
- '''Universal polar stereographic coordinate system'''
2688
-
2689
- class SpatialReferenceSystemMode:
2690
- '''Specifies a mode of Spatial Reference System (SRS) writing in database
2691
- if it\'s an unknown SRS.'''
2692
-
2693
- THROW_EXCEPTION : SpatialReferenceSystemMode
2694
- '''Throw exceptions if it\'s an unknown SRS for the database.'''
2695
- WRITE_IN_SYSTEM_TABLE : SpatialReferenceSystemMode
2696
- '''Write SRS info in system table if it\'s an unknown SRS for the database.'''
2697
- SETUP_TO_ZERO : SpatialReferenceSystemMode
2698
- '''Setup the SRID of a geometry to \'zero\' if it\'s an unknown SRS for the database.'''
3
+ from typing import Any
2699
4
 
5
+ def get_pyinstaller_hook_dirs() -> Any:
6
+ """Function required by PyInstaller. Returns paths to module
7
+ PyInstaller hooks. Not intended to be called explicitly."""
8
+ ...