Python APIs for Gis Data

Loading a Gis Data from a file

gisData = GisData("F:\\Data\\ESRI\\world\\cities.shp")

Using the Gis Data File Chooser

An example of a data chooser for selecting on file:

chooser = GisDataChooser()
gisData = chooser.getSelectedData()
An example of a data chooser for selecting mutliple files:
chooser = MultipleGisDataChooser()
gisDataArray = chooser.getSelectedData()

Getting information about the data keys

Example of getting all key attribute names for a gis data:

keyNamesArray = gisData.getKeyNames()

Using this information, you can access specific key range information by using the following methods:

dataLatMin = gisData.getKeyMinimum("Lat")
dataLatMax = gisData.getKeyMaximum("Lat")
dataLatRange = gisData.getKeyRange("Lat")

Getting information about the data's coordinate system

Example of getting EPSG Code for the gis data:

EPSGCode = gisData.getEPSGCode()

Example of setting EPSG Code for the gis data:

gisData.setEPSGCode("4326")

Example of getting Coordinate System Mode (either be XY or LatLong)

crsMode = gisData.getCRSMode()