User Tools

Site Tools


howtos:workwithdata:geographic_data

[This should ultimately find its way to the TOOL reference manual but for now here's the signature for importing polygon shapefiles]

You may only use the import tool if your object already has shape. The current signature for the create tool follows (we have plans to go to the dataFormat= & fileFormat= parameters). If you really are importing, then ignore the object, space and names parameters.

a[] = create (; object=poly, space=2, names=N, \
    format=shape, dataFile=fileName, {invertX=on/off},{ invertY=on/off})

The invert parameters are optional and default to off.

Note that to import shapefiles both the .shp and .shx files are required in the import directory, even though only the .shp file is specified in the datafile parameter.

howtos/workwithdata/geographic_data.txt · Last modified: 2009/11/12 15:56 by marcus.williams