19
Hydrologic Hydrologic Information System Information System Deployment and Deployment and configuration configuration

Hydrologic Information System Deployment and configuration

Embed Size (px)

Citation preview

Page 1: Hydrologic Information System Deployment and configuration

Hydrologic Information Hydrologic Information SystemSystem

Deployment and Deployment and configurationconfiguration

Page 2: Hydrologic Information System Deployment and configuration

DA

SH

AGS Server

IIS

Windows 2003 Server4 GB Ram1 TB Disk

Quad Core CPU

SQLServer

VS 2

005

WaterOneFlow Web Services

ArcGIS 9.2

GIS Data Mxd Service

OD

M L

oad

er

OD

M t

ools

OD

M

Current Deployment Current Deployment ArchitectureArchitecture

Direct DB connection

Page 3: Hydrologic Information System Deployment and configuration

What are the possible variables for the selected set of sites?

Which of these sites have values for the selected variable?

Multi-station selectionMulti-station selectionFunctionality which still requires direct database Functionality which still requires direct database

accessaccess

Page 4: Hydrologic Information System Deployment and configuration

WaterOneFlow Web Services

Add methods:GetVarsAtSites(String[] siteids)GetSitesVar(String[] siteids, strVar)

DA

SH

AGS Server

IIS

Windows 2003 Server4 GB Ram1 TB Disk

Quad Core CPU

SQLServer

VS 2

005

ArcGIS 9.2

GIS Data Mxd Service

OD

M L

oad

er

OD

M t

ools

(Future) Web Services (Future) Web Services ArchitectureArchitecture

WaterOneFlow Web Services are extendedWaterOneFlow Web Services are extended

OD

M

Page 5: Hydrologic Information System Deployment and configuration

For each network: NetworkID, NetworkCode, NetworkName, NetworkConnectionString NetworkServicesWSDL NetworkServicesURL NetworkServicesGetValuesURL CreatedDate LastUpdateDate ResponsibleParty Disabled DisableDate

SQL Server

ODMs and catalogs. All instancesexposed as ODM (i.e. have standard ODM tables or views: Sites, Variables, SeriesCatalog, etc.)

NWIS-IID

NWIS-DV

ASOS

STORET

TCEQ

BearRiver

. . .

Spatial store

Geodatabase or collection of shapefilesor both

NWIS-IID points

NWIS-DV points

ASOS points

STORET points

TCEQ points

BearRiver points

. . .

My new ODM

My new points

More databases

More synced layers

DASH Application

Background layers

(can be in the same or separate spatial store)

WOF services

Web services from a common template

NWIS-IID WS

NWIS-DV WS

ASOS WS

STORET WS

TCEQ WS

BearRiver WS

. . .My new WS

More WS fromODM-WS template

USGS

NCDC

EPA

TCEQ

Web Configuration fileStores information about registered networks

MXDStores information about layers

WSDLs

, web

serv

ice U

RLs Connection

strings

Layer info,

symbology, etc.

Page 6: Hydrologic Information System Deployment and configuration

SQL Server

ODMs and catalogs. All instancesexposed as ODM (i.e. have standard ODM tables or views: Sites, Variables, SeriesCatalog, etc.)

NWIS-IID

NWIS-DV

ASOS

STORET

TCEQ

BearRiver

. . .

Spatial store

Geodatabase or collection of shapefilesor both

NWIS-IID points

NWIS-DV points

ASOS points

STORET points

TCEQ points

BearRiver points

. . .

My new ODM

My new points

More databases

More synced layers

DASH Application

Background layers

(can be in the same or separate spatial store)

WOF services

Web services from a common template

NWIS-IID WS

NWIS-DV WS

ASOS WS

STORET WS

TCEQ WS

BearRiver WS

. . .My new WS

More WS fromODM-WS template

USGS

NCDC

EPA

TCEQ

Web Configuration fileStores information about registered networks

MXDStores information about layers

WSDLs

, web

serv

ice U

RLs Connection

strings

Layer info,

symbology, etc.

2

6

5

3

ODMDataLoader

1

4

Page 7: Hydrologic Information System Deployment and configuration

New network registration steps

Using the ODM DataLoader, load your data into a blank ODM instance (this will create all ODM tables, including Sites, Variables and SeriesCatalog that HIS application relies on)

Copy Web Services template to a new folder, edit the template web.config file to point to the new ODM, test to make sure the new service works as expected

Create a point layer (a feature class in GDB, or a shapefile) from the new ODM’s Sites table or from GetSites web service (using GetSitesTool – this will also test the service)

Add the point layer to the MXD document, specify symbology, scale-dependent rendering, etc.

Add information about the new ODM, the associated web service, and the associated point layer, to HIS configuration file (see the first slide for the exact content)

Restart the HIS service6

5

4

3

2

1

Page 8: Hydrologic Information System Deployment and configuration

Loading Observation dataLoading Observation data

►Make a copy of the ODM template Make a copy of the ODM template databasedatabase

►Data to be loaded is in an Excel Data to be loaded is in an Excel readable format (xls, txt, csv).readable format (xls, txt, csv).

►Use ODM DataLoader to load dataUse ODM DataLoader to load data

1

Page 9: Hydrologic Information System Deployment and configuration

Structure Structure of ODM of ODM

DataLoadDataLoaderer

1

Page 10: Hydrologic Information System Deployment and configuration

Configure WaterOneFlow Web Configure WaterOneFlow Web ServiceService

►Create copy of Web Services from template: Create copy of Web Services from template: Make a copy and renameMake a copy and rename

►Edit the web.config file using VS or notepadEdit the web.config file using VS or notepad

<appSettings> <add key="network" value=“BearRiver"/> <add key="vocabulary" value=“BearRiver"/> <add key="serviceExampleHTMLPage" value=“BearRiverSampleData.htm"/></appSettings><connectionStrings> <add name="ODDB" connectionString="Data Source=.\SQLEXPRESS;Integrated Security=true;User instance=true;AttachDbFilename=|DataDirectory|BearRiver.mdf;Database=BearRiver" providerName="System.Data.SqlClient"/> </connectionStrings>

2

Page 11: Hydrologic Information System Deployment and configuration

Extract Geometries from Extract Geometries from WebServiceWebService

► GetSites method returns sites with Lat / Long valuesGetSites method returns sites with Lat / Long values► Use GetSitesTool (under development) to Create Use GetSitesTool (under development) to Create

shape file. shape file. ► Add shapefile to service documentAdd shapefile to service document

3

Page 12: Hydrologic Information System Deployment and configuration

Add Sites to Map Service Add Sites to Map Service DocumentDocument

► Add DataAdd Data► Specify rendering propertiesSpecify rendering properties

4

Page 13: Hydrologic Information System Deployment and configuration

Configure HISConfigure HIS► Edit HISNetworks.xml found in the bin of the HIS Application.Edit HISNetworks.xml found in the bin of the HIS Application.► Copy/Paste existing “HISNetwork” block and edit to change:Copy/Paste existing “HISNetwork” block and edit to change:

<HISNetwork Script="GetSiteInfo" RecordSetXML="" TagName=“BearRiver" Name=“BearRiver" LayerName=“BearRiver" LayerIndex="1" WebServiceURL=“ http://water.usu.edu/BearRiver/cuahsi_1_0.asmx SiteCodeField="siteid"> <ApWebFields Desc="ParameterFields" Name="ParameterFields" TagName="ParameterFields" IsReadOnly="False" IsFixedSize="False" IsSynchronized="False" Count="2"> <ApWebField ConstValue="False" FieldOrder="0" AllowEdit="1" Desc=“siteid" FieldAlias="asosid" Name="siteid" TagName="siteid" Order="0" Type="0" Text="siteid"/> <ApWebField ConstValue="True" FieldOrder="1" AllowEdit="1" Desc="BearRiver" FieldAlias="BearRiver" Name="BearRiver" TagName="BearRiver" Order="0" Type="0" Text="BearRiver" Value="BearRiver"/> </ApWebFields> <ApWebFields Desc="DisplayFields" Name="DisplayFields" TagName="DisplayFields" IsReadOnly="False" IsFixedSize="False" IsSynchronized="False" Count="2"> <ApWebField ConstValue="False" FieldOrder="1" AllowEdit="1" Desc="sitename" FieldAlias="sitename" Name="sitename" TagName="sitename" Order="0" Type="0" Text="sitename"/> <ApWebField ConstValue="True" FieldOrder="0" AllowEdit="1" Desc="BearRiver" FieldAlias="BearRiver" Name="BearRiver" TagName="BearRiver" Order="0" Type="0" Text="BearRiver" Value="BearRiver"/> </ApWebFields></HISNetwork>

► NetworkID, NetworkCode,► NetworkName,► NetworkConnectionString ► NetworkServicesWSDL► NetworkServicesURL► NetworkServicesGetValuesURL► CreatedDate► LastUpdateDate► ResponsibleParty► Disabled► DisableDate

5

Page 14: Hydrologic Information System Deployment and configuration

Refresh Map ServiceRefresh Map Service

► Use ArcCatalog to Stop and start the Map service Use ArcCatalog to Stop and start the Map service

6

Page 15: Hydrologic Information System Deployment and configuration

Deployment scheduleDeployment schedule

►March 29: 8 servers received; 2 are March 29: 8 servers received; 2 are being configuredbeing configured

►April 9: reviewApril 9: review►April 16: final call for componentsApril 16: final call for components►Week of April 23: shipping to 7 test Week of April 23: shipping to 7 test

bedsbeds

Page 16: Hydrologic Information System Deployment and configuration

ContentContent

C: 50Gb O: 270Gb P: 180Gb

System Disk

OS

Program Files - SQL Server - ArcGIS - ArcGIS Server

HIS - OD Data Loader - ODM Tools

Wwwroot - DASH - web service test tool

Data Disk

ODM Databases

Web services

GIS Data

Tutorials, how-tos

Work area

Backup and experiments

Virtual server

OS backup image

Another work area

Page 17: Hydrologic Information System Deployment and configuration

Content2Content2

C: 50Gb O: 270Gb P: 180Gb

System Disk

OS

Program Files - SQL Server - ArcGIS - ArcGIS Server

HIS - OD Data Loader - ODM Tools

Data Disk

ODM Databases

GIS Data

Work area

HIS software and backup

Virtual server

OS backup image

WaterOneFlow Web Services

Web Apps WSTestPage DASH

Tutorials, how-tos

Additional work area

Page 18: Hydrologic Information System Deployment and configuration

AdministrationAdministration

►Local administratorLocal administrator►Remote admin account (for SDSC)Remote admin account (for SDSC)►Need a GetNetworks serviceNeed a GetNetworks service

Page 19: Hydrologic Information System Deployment and configuration

UpdatesUpdates

► Software:Software: DASH and ODM ToolsDASH and ODM Tools

► New versions on web site, with installation instructionsNew versions on web site, with installation instructions ODM Data LoaderODM Data Loader

► ClickOnce deploymentClickOnce deployment Regular software updates and patches for COTSRegular software updates and patches for COTS

► Need to first try at SDSC; post on administrators blogNeed to first try at SDSC; post on administrators blog

► Databases:Databases: Regularly updated at SDSC; available to workgroups via Regularly updated at SDSC; available to workgroups via

web services and direct connection to disrupter.sdsc.eduweb services and direct connection to disrupter.sdsc.edu► Web servicesWeb services

New templates posted on web site, with instructionsNew templates posted on web site, with instructions