Shapefile Import Setup

<< Click to Display Table of Contents >>

Navigation:  IMS version 22.6 & 22.9 > IMS Basics - User Guide 22.6 & 22.9 > Network Map 1  > Shapefile > Shapefile Setup >

Shapefile Import Setup

The Shapefile feature relies on an equivalent and corresponding entry in the ComboBox Data module.

 

Loading data into IMS from GIS systems requires some initial analysis and ComboBox Data preparation work. Once these are set up, they can be reused rapidly whenever new mapping data becomes available and is required for importing into IMS.  

 

 

Import Shapefile Setup (Mappings)

 

The mapping relationship between the Shapefile and an IMS entity is achieved through the use of the ComboBoxData feature.

 

For more detailed information on how to setup a ComboBoxData instance please refer to the section called: Combobox Data in the IMS Admin User Guide.

 

The following information is important to note and follow when creating a new ComboBoxData selection instance:

 

01-05-SFcomboBox_attributes

 

ComboBox Data component description:

 

1

The name must start with SHAPEIMPORT_MAPPING followed by underscore symbol

2

The next portion must contain the IMS Entity Type Name - Site, Circuit, Node, etc.) followed by underscore symbol

3

User defined portion of the selection name that helps identify this ComboBoxData selection

4

the individual IMS Property Name (table field) - followed by the equal symbol (=)

This IMS Property Name becomes the header used in the Bulkloader.

It can also be an extrafield of the IMS Entity    

5

Attributes that can be used for the IMS Property Name are:

 

POINTY

Is the Latitude value from the Geometry module from the GIS application

POINTX

Is the Longitude value from the Geometry module from the GIS application

#ORDERID#

Is the OrderId which is mentioned in the Import ShapeFile window - see section below called Import Shapefile window

{YYYYY}

Attribute in the shape file

#NULL:UNKN#

Can be used for a shapefile attribute where some records contain Null values. These can be replaced with an IMS user defined value - in this example: UNKN

‘VALUE

Any value that is also used to fill a Bulkloader's property

COORDINATES

This is the Geometry from the ShapeFile Changed to Lat1,Lon1|Lat2,Lon2|Lat3|Lon3|Etc

 

6

Example where any incoming NULL value for an OrderId will be replaced with a user defined OrderId

 

 

ComboBoxData Selection Examples

 

Point Data Example

 

LATITUDE=POINTY

LONGITUDE=POINTX

GETADDRESSFROMGOOGLEAPI=TRUE

ORDERID=#ORDERID#

INVENTORYSTATUSID='PL'

CITYID='UNKNOWN'

STREET='-'

HOUSENUMBER='-'

ZIPCODE='-'

NAME={ST_CODE}

CUSTOMERID='UNKN'

SITETYPEID={ST_PROPTYP}

 

LineString Data Example

 

SPEEDID='DUCT{CAPACITY}'

DUCT_ID={DUCT_ID}

DUCT_GROUP={DUCT_GROUP}

PRODUCTID='DUCT HDPE 24X4MM ORANGE 50MM'

CUSTOMERID='FIBER'

ORDERID=#ORDERID#

VENDORID='ID:2049'  

SERVICEPARTS='FIBER'

SITEAID='UNKN'

SITEBID='UNKN'

COORDINATES=COORDINATES

 

Polygon Data Example

 

NAME=BLDG_ID

POLYGONTYPEID='COMSOF'

COORDINATES=COORDINATES

 

 

Example Data Mapping

 

Locate the GIS file that contains the new data to be mapped into IMS.

 

02-01-SFadminGISfile

 

This table shows the property names from the two different systems:

 

GIS Property Name

IMS Property Name

Cab_Name

Name

Latitude

Latitude

Longitude

Longitude

CabinetNam

SiteName

 

 

The next step is to create a new ComboBox Data entry that represents this import routine. The ComboBox Data Name is made up of three parts as described above in the ComboBox Data component description section.

 

In this case it is the IMS Site object that is the focus for the import routine.

 

02-03-SFadminComboBoxNew

In the Selection area, build out the Property mapping details [GIS to IMS], one property at a time - one per entry under the same ComboBox Data Name.

 

02-04-SFadminComboBoxBuild

 

 

Where there is no direct mapping to the GIS data then fix a value for any required property in IMS:

 

02-05-SFadminComboBoxFixed

 

Below is a screen shot example of a completed mapping exercise:

 

02-06-SFadminComboBoxCompleted

 

For comparison purposes only:

 

Although the creation of a Bulkloader instance (file) is not required when using the Import Shapefile routine from the Network Map, and for those who are familiar with loading from Bulkloaders, the screenshot below shows the equivalent mapping of Properties between the GIS and Bulkloader files.

02-02-SFadminGISandBLfiles