Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

A spatial engine provides access to a service that can perform spatial operations, one of the available spatial engines is for a directory of Shapefiles.

The shapefile directory spatial engine will use sub-directories to give the shapefiles kind of schema. For example if the URL parameter points to a directory that contains a single shape file called RIVERS then the shapefile will be registered under the name RIVERS, but if the URL parameter points to a directory that contains another directory called WATER and under that directory there is a shapefile called RIVERS then the shapefile will be registered as WATER.RIVERS.

Namespace

urn:com.cohga.server.spatial.geotools#1.0

Tags

spatialengine

Properties

Name

Type

Required

Description

id

string

yes

Unique identifier

dbtype

'shapefiledir'

yes

The name of the driver to use, in this case Shapefile

url

string

yes

The URL that points to the directory containing the shapefiles

memorymapped

boolean

no

Enable/disable the use of memory-mapped io

createspatialindex

boolean

no

Enable/disable the automatic creation of spatial index

namespace

string

no

A namespace to associate with the shapefiles

Sub-tags

None

Content

None

Examples

	<spatial:spatialEngine id="spatialengine.shapefile">
		<dbtype>shapefiledir</dbtype>
		<url><![CDATA[file:/home/sforbes/data/spatial/demo]]></url>
		<memorymapped>true</memorymapped>
		<createspatialindex>true</createspatialindex>
	</spatial:spatialEngine>
	<spatial:spatialEngine id="spatialengine.shapefile">
		<dbtype>shapefiledir</dbtype>
		<url><![CDATA[file:G:\GIS\DATA\SHAPEFILES]]></url>
		<memorymapped>true</memorymapped>
		<createspatialindex>true</createspatialindex>
	</spatial:spatialEngine>
  • No labels