You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ Coming Soon
51
51
52
52
---
53
53
### Export
54
-
Export features from the [Attributes Tables](https://github.com/tmcgee/cmv-widgets#attributes-tables) widget or other widgets that have a [dgrid](http://dgrid.io).
54
+
Export features from the [Attributes Tables](https://github.com/tmcgee/cmv-widgets#attributes-tables) widget or other widgets that have a [dgrid](http://dgrid.io). Features can be exported in tabular and spatial formats.
Copy file name to clipboardExpand all lines: widgets/Export/README.md
+59-12
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,24 @@
1
-
#Export Widget for CMV
2
-
1. Export attributes from the [Attribute Table](https://github.com/tmcgee/cmv-widgets#attributes-tables) widget or other widgets that have a [dgrid](http://dgrid.io). Formats supported: Excel (xlsx and xls) and Comma-Separated-Values (csv).
1
+
# Export Widget for CMV
2
+
1. Export attributes in tabular formats from the [Attributes Table](https://github.com/tmcgee/cmv-widgets#attributes-tables) widget or other widgets that have a [dgrid](http://dgrid.io). Formats supported:
3
+
* Excel (xlsx and xls)
4
+
* Comma-Separated-Values (csv)
3
5
4
-
2. Export features in spatial formats. Formats supported: GeoJSON, KML, Well-Known Text (wkt) and Esri Shape files. Examples of exported features:
6
+
2. Export features in spatial formats. Formats supported:
7
+
* Esri Shapefiles
8
+
* KML
9
+
* KMZ
10
+
* GeoJSON
11
+
* TopoJSON
12
+
* Well-Known Text (wkt)
5
13
6
-
- An Identified Feature
7
-
- Features from a Feature layer on the map
8
-
- Graphics from a Graphics layer on the map
9
-
- Drawn Graphic Shapes from a Draw widget
10
-
- Features return from a QueryTask or FindTask of a Map Service
11
-
- A FeatureSet returned from a Geoprocessing Task
14
+
3. Examples of exported features:
15
+
* Features from the [Attributes Table](https://github.com/tmcgee/cmv-widgets#attributes-tables) widget
16
+
* An Identified Feature
17
+
* Features from a Feature layer on the map
18
+
* Graphics from a Graphics layer on the map
19
+
* Drawn Graphic Shapes from a Draw widget
20
+
* Features return from a QueryTask or FindTask of a Map Service
21
+
* A FeatureSet returned from a Geoprocessing Task
12
22
13
23
All geometries exported to GeoJSON or KML are projected to Lat/Lng using Spatial Reference 4326. When exporting to Well-Known Text or Esri Shapefile, an output Spatial Reference WKID can be provided and the geometries are projected to the selected Spatial Reference.
14
24
@@ -19,6 +29,21 @@ NOTE: Downloading the export file when using Internet Explorer 9 or older is not
19
29
| Parameter | Type | Description |
20
30
| :----: | :--: | ----------- |
21
31
|`topicID`| String | Default is `exportDialog`|
32
+
|`excel`| Boolean | Allow attributes to be exported to Excel. Default is true |
33
+
|`xlsExcel`| Boolean | Allow attributes to be exported to Excel (XLS format)Default is false |
34
+
|`csv`| Boolean | Allow attributes to be exported to CSV. Default is true |
35
+
|`shapefile`| Boolean | Allow attributes to be exported to a Shapefile. Default is false |
36
+
|`kml`| Boolean | Allow attributes to be exported to KML. Default is false |
37
+
|`kmz`| Boolean | Allow attributes to be exported to KMZ. Default is false |
38
+
|`geojson`| Boolean | Allow attributes to be exported to GeoJSON. Default is false |
39
+
|`topjson`| Boolean | Allow attributes to be exported to TopoJSON. Default is false |
40
+
|`wkt`| Boolean | Allow attributes to be exported to Well-Known Text. Default is false |
41
+
|`filename`| String | Name of file for export. Default is `results`|
42
+
|`defaultExportType`| String | The default type of export. Default is 'excel' |
43
+
|`shapefileOptions`| Object | Options for Shapefile format. |
44
+
|`kmlOptions`| Object | Options for KML format. |
45
+
|`geojsonOptions`| Object | Options for GeoJSON format. |
46
+
|`topojsonOptions`| Object | Options for TopJSON format. |
22
47
23
48
---
24
49
## Example Configuration:
@@ -29,15 +54,37 @@ exportDialog: {
29
54
type:'floating',
30
55
path:'widgets/Export',
31
56
title:'Export',
32
-
options: {}
57
+
options: {
58
+
excel:true,
59
+
xlsExcel:false,
60
+
csv:true,
61
+
62
+
shapefile:true,
63
+
kml:true,
64
+
kmz:true,
65
+
geojson:true,
66
+
topojson:true,
67
+
wkt:true,
68
+
69
+
defaultExportType:'shapefile',
70
+
71
+
// this option can be a string or a function that returns
The Exports widget does not stand-alone. It is intended with to be used as a querying interface for an attributes table. Two other widgets are planned that can communicate with an attributes table:
42
89
43
90
1. Plug-in for layerControl widget
@@ -46,7 +93,7 @@ The Exports widget does not stand-alone. It is intended with to be used as a que
46
93
Communication to/from another widget to an attributes table is via dojo's topic publish/subscribe model. The available topics are listed below.
47
94
48
95
---
49
-
##Export Topics
96
+
##Export Topics
50
97
51
98
### Subscribed Topics
52
99
The Export widget subscribes to the following topics.
0 commit comments