Difference between revisions of "Using the sandbox with GIS tools"

From IMSMA Wiki
Jump to: navigation, search
Line 3: Line 3:
 
# using the so called sandbox which is the geodatabase which is used by the client.
 
# using the so called sandbox which is the geodatabase which is used by the client.
  
{{Warning| The sandbox and the client background map are used the {{IMSMANG}} application so if they become broken then the Map pane inside {{IMSMANG}} stop working.}}
+
=== Using the Staging area database===__NOEDITSECTION__
 +
The '''[[Connecting to IMSMA Staging area from ArcGIS | Staging area database option]]''' is the '''best''' option since it gives you access to all attributes including CDFs in ArcMap and PostGIS is activated in the Staging area database. There is a special mxd file for the Staging area in the ''C:\IMSMAETLTool\data'' folder. You will find how to connect '''[[Connecting to IMSMA Staging area from ArcGIS | here]]'''.
  
The '''[[Connecting to IMSMA Staging area from ArcGIS | Staging area database option]]''' is the best one since it gives you access to all attributes including CDFs in ArcMap and PostGIS is activated in the Staging area database. There is a special mxd file for the Staging area in the ''C:\IMSMAETLTool\data'' folder.
+
=== Using the sandbox===__NOEDITSECTION__
 +
{{Warning| The sandbox and the client background map are used by the {{IMSMANG}} application so if they become broken then the Map pane inside {{IMSMANG}} will stop working.}}
  
The sandbox option is '''not''' recommended to use but if you decided to do it anyhow please:
+
The sandbox option is '''NOT''' recommended to use but if you decided to do it anyhow please:
# make a copy of the client background map
 
 
# make a copy of the file based geodatabase
 
# make a copy of the file based geodatabase
and use these when working with ArcGIS.
+
# make a copy of the client's mxd file
Both of them are found in the client's current background map folder in ''C:\IMSMAng\client\gis\sandbox''.  
+
by '''following''' the instructions below and use copies when working with ArcGIS.
  
If the client's current background map is called ''World'' then you will find the World.mxd in ''C:\IMSMAng\client\gis\sandbox\World\map''.
+
If the client's current background map is called ''World'' then you will find the file based geodatbase in ''C:\IMSMAng\client\gis\sandbox\World\map''.
 
<li>Close the {{IMSMANG}} client.
 
<li>Close the {{IMSMANG}} client.
<li>Copy this file to a new name e.g. World_3Aug.mxd.
+
<li>Copy the folder called ''IMSMA.gdb'' in ''C:\IMSMAng\client\gis\sandbox\World\map'' to e.g. IMSMA_3Aug.gdb.
<li>Copy the folder called ''IMSMA.gdb'' in ''C:\IMSMAng\client\gis\sandbox\World\map'' (which is the file based geodatabase) to e.g. IMSMA_3Aug.gdb.  
+
<li>Open ArcMap with an empty mxd or start ArcCatalog.
<li>Change the Data source for all layers with ArcCatalog to IMSMA_3Aug.gdb. See instructions [[http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/repairing-broken-data-links.htm#GUID-4A6945FD-F159-4FB3-B6D8-699E930D879A Changing the data source when the link isn't broken]].
+
<li>In ArcCatalog right-click on World.mxd and select ''Set Data Source(s)''
 +
<li>Set the name to the output file to e.g. ''World'''_3Aug'''.mxd''.
 +
<li>Click on '''Select All''' button.
 +
<li>Click on '''Replace All''' button.
 +
<li>Set ''Replace with'' to e.g. ''C:\IMSMAng\client\gis\sandbox\World\map\IMSMA'''_3Aug'''.gdb''.
 +
<li>Click on '''Replace All''' button.
 +
<li>Verify the result and click on '''OK''.
 +
<li>Open the new mxd, ''World_3Aug.mxd''.
 +
[[Image:Change datasource mxd.png|400px|center]]
 +
<li>Click on the second tab ''List by Source and verify that '''IMSMA_3Aug.gdb''' is used.
 +
</ol>
 +
See more on [http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/repairing-broken-data-links.htm#GUID-4A6945FD-F159-4FB3-B6D8-699E930D879A Updating/Changing data source].

Revision as of 20:49, 3 August 2016

There are two options:

  1. using the Staging area database
  2. using the so called sandbox which is the geodatabase which is used by the client.

Using the Staging area database

The Staging area database option is the best option since it gives you access to all attributes including CDFs in ArcMap and PostGIS is activated in the Staging area database. There is a special mxd file for the Staging area in the C:\IMSMAETLTool\data folder. You will find how to connect here.

Using the sandbox

Warning.jpg The sandbox and the client background map are used by the IMSMANG application so if they become broken then the Map pane inside IMSMANG will stop working.

The sandbox option is NOT recommended to use but if you decided to do it anyhow please:

  1. make a copy of the file based geodatabase
  2. make a copy of the client's mxd file

by following the instructions below and use copies when working with ArcGIS.

If the client's current background map is called World then you will find the file based geodatbase in C:\IMSMAng\client\gis\sandbox\World\map.

  • Close the IMSMANG client.
  • Copy the folder called IMSMA.gdb in C:\IMSMAng\client\gis\sandbox\World\map to e.g. IMSMA_3Aug.gdb.
  • Open ArcMap with an empty mxd or start ArcCatalog.
  • In ArcCatalog right-click on World.mxd and select Set Data Source(s)
  • Set the name to the output file to e.g. World_3Aug.mxd.
  • Click on Select All button.
  • Click on Replace All button.
  • Set Replace with to e.g. C:\IMSMAng\client\gis\sandbox\World\map\IMSMA_3Aug.gdb.
  • Click on Replace All button.
  • Verify the result and click on 'OK.
  • Open the new mxd, World_3Aug.mxd.
    Change datasource mxd.png
  • Click on the second tab List by Source and verify that IMSMA_3Aug.gdb is used. </ol> See more on Updating/Changing data source.