Page Properties |
---|
|
Theme | Data Loading |
---|
Type | ESRI FeatureServer |
---|
Available from |
|
---|
|
...
Code Block |
---|
-f GeoJSON E:\iShareData\{new_layer}.geojson {featureserver URL} |
Where: is You need to change the entries to reflect the path to where you wish to save your GeoJSON fileto the GeoJSON file to create, the URL to the dataset you wish to download, together with geometry information e.g.
...
- In Studio create a Spatial Data Transformation Task to load the GeoJSON into a SDW PostGIS table. You could also output as an ESRI Shape file or MapInfo tab file by selecting different Output.
- Enter a Name for the Task and pick GeoJSON File as the Source Data.
Note |
---|
If GeoJSON File does not exist in the list of "Source Data" types then you will need to edit the ConTypes.xml file, which you will find in the ...Astun\iShare\n.n\Studio\config folder. If you open ConTypes.xml with a text editor you will see options for DBConTypes (servers, such as PostgreSQL and Oracle) and FileConTypes (file formats such as shapefile or mapinfo tab). Create a new FileConType entry after the last closing </FileConType> tag (but before the closing </ConnectionTypes> tag as follows: Code Block |
---|
<FileConType>
<Name>GeoJSON File</Name>
<FormatName>GeoJSON</FormatName>
<Direction>Both</Direction>
<FileFilter>GeoJSON files (.geojson)|.geojson</FileFilter>
</FileConType> |
|
...