arlas-web-components / Exports / MapglImportComponent
Class: MapglImportComponent
Table of contents
Constructors
Properties
- FILE_TOO_LARGE
- GEOJSON
- GEOMETRY_INVALID
- KML
- PARSING_ISSUE
- SELF_INTERSECT
- SHP
- TIMEOUT
- TOO_MANY_FEATURES
- TOO_MANY_VERTICES
- WKT
- allowedGeometryObjectType
- allowedImportType
- currentFile
- dialog
- dialogRef
- error
- imported
- mapComponent
- maxFeatures
- maxFileSize
- maxLoadingTime
- maxVertexByPolygon
- reader
Methods
- addFeature
- buildFeature
- calcCentroid
- clearPolygons
- handleFeatureCollection
- handleGeometryCollection
- handleMultiGeometry
- handleSimpleGeometry
- import
- openDialog
- processAllKml
- processAllShape
- processJson
- processWKT
- promiseTimeout
- readJsonFile
- readKmlFile
- readZipFile
- setImportedData
Constructors
constructor
• new MapglImportComponent(dialog
)
Parameters
Name | Type |
---|---|
dialog |
MatDialog |
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:162
Properties
FILE_TOO_LARGE
• FILE_TOO_LARGE: "File is too large"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:132
GEOJSON
• GEOJSON: string
= 'geojson'
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:128
GEOMETRY_INVALID
• GEOMETRY_INVALID: "Geometry is not valid"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:133
KML
• KML: string
= 'kml'
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:126
PARSING_ISSUE
• PARSING_ISSUE: "Problem parsing input file"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:131
SELF_INTERSECT
• SELF_INTERSECT: "Geometry is not valid due to self-intersection"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:130
SHP
• SHP: string
= 'shp'
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:125
TIMEOUT
• TIMEOUT: "Timeout"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:136
TOO_MANY_FEATURES
• TOO_MANY_FEATURES: "Too many features"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:135
TOO_MANY_VERTICES
• TOO_MANY_VERTICES: "Too many vertices in a polygon"
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:134
WKT
• WKT: string
= 'wkt'
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:127
allowedGeometryObjectType
• allowedGeometryObjectType: AllowedImportGeometry
[]
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:158
allowedImportType
• allowedImportType: string
[]
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:157
currentFile
• currentFile: File
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:138
dialog
• dialog: MatDialog
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:163
dialogRef
• dialogRef: MatDialogRef
<MapglImportDialogComponent
, any
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:139
error
• error: Subject
<any
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:160
imported
• imported: Subject
<any
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:159
mapComponent
• mapComponent: MapglComponent
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:152
maxFeatures
• Optional
maxFeatures: number
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:154
maxFileSize
• Optional
maxFileSize: number
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:155
maxLoadingTime
• maxLoadingTime: number
= 20000
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:156
maxVertexByPolygon
• maxVertexByPolygon: number
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:153
reader
• reader: FileReader
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:140
Methods
addFeature
▸ addFeature(feature
, centroides
, importedGeojson
, index
): void
Parameters
Name | Type |
---|---|
feature |
any |
centroides |
any [] |
importedGeojson |
Object |
importedGeojson.features |
any [] |
importedGeojson.type |
string |
index |
number |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:521
buildFeature
▸ buildFeature(geom
, feature
, geometryType?
, bbox?
): Object
Parameters
Name | Type |
---|---|
geom |
any |
feature |
any |
geometryType? |
string |
bbox? |
boolean |
Returns
Object
Name | Type |
---|---|
geometry |
{ coordinates : any = geom; type : any } |
geometry.coordinates |
any |
geometry.type |
any |
properties |
any |
type |
string |
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:238
calcCentroid
▸ calcCentroid(feature
): any
Parameters
Name | Type |
---|---|
feature |
any |
Returns
any
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:553
clearPolygons
▸ clearPolygons(): void
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:511
handleFeatureCollection
▸ handleFeatureCollection(feature
, centroids
, importedGeojson
): void
Parameters
Name | Type |
---|---|
feature |
any |
centroids |
any |
importedGeojson |
any |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:283
handleGeometryCollection
▸ handleGeometryCollection(feature
, centroids
, importedGeojson
): void
Parameters
Name | Type |
---|---|
feature |
any |
centroids |
any |
importedGeojson |
any |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:273
handleMultiGeometry
▸ handleMultiGeometry(feature
, centroids
, importedGeojson
): void
Parameters
Name | Type |
---|---|
feature |
any |
centroids |
any |
importedGeojson |
any |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:263
handleSimpleGeometry
▸ handleSimpleGeometry(feature
, centroids
, importedGeojson
): void
Parameters
Name | Type |
---|---|
feature |
any |
centroids |
any |
importedGeojson |
any |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:254
import
▸ import(importType
, content?
): void
Parameters
Name | Type |
---|---|
importType |
string |
content? |
string |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:216
openDialog
▸ openDialog(): void
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:204
processAllKml
▸ processAllKml(): Promise
<void
>
Returns
Promise
<void
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:324
processAllShape
▸ processAllShape(): Promise
<void
>
Returns
Promise
<void
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:448
processJson
▸ processJson(): Promise
<void
>
Returns
Promise
<void
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:382
processWKT
▸ processWKT(wkt
): Promise
<void
>
Parameters
Name | Type |
---|---|
wkt |
string |
Returns
Promise
<void
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:481
promiseTimeout
▸ promiseTimeout(ms
, promise
): Promise
<any
>
Parameters
Name | Type |
---|---|
ms |
any |
promise |
any |
Returns
Promise
<any
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:166
readJsonFile
▸ readJsonFile(): Promise
<string
| ArrayBuffer
>
Returns
Promise
<string
| ArrayBuffer
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:357
readKmlFile
▸ readKmlFile(): Promise
<string
| ArrayBuffer
>
Returns
Promise
<string
| ArrayBuffer
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:298
readZipFile
▸ readZipFile(): Promise
<unknown
>
Returns
Promise
<unknown
>
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:418
setImportedData
▸ setImportedData(importedResult
): void
Parameters
Name | Type |
---|---|
importedResult |
any |
Returns
void
Defined in
projects/arlas-components/src/lib/components/mapgl-import/mapgl-import.component.ts:529