Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

# FDO Provider Spatial Operator Tests
[Geometry]

These tests parallel the ones defined for the MgGeometry methods.

Before running the sql commands batch file, you must insert the following set of geometries into the provider datastore. The assumption is that you have applied a schema which defines an integer field for storing a feature id and a geometry field for storing points, lines, and polygons. It also assumes that you named the feature id field FEATID, the geometry field GEOMETRY, and the class FEATCLASS.

FeatId | Geometry
--- | ---
0 | POINT(1 1)
1 | LINESTRING(0 1, 3 1)
2 | POLYGON((0 0, 2 0, 2 2, 0 2, 0 0))
3 | MULTIPOINT(1 1, 2 1)
4 | MULTIPOINT(2 1, 3 1, 5 1)
5 | LINESTRING(2 1, 6 1)
6 | POLYGON((1 0, 6 0, 6 2, 1 2, 1 0))
7 | POLYGON((2 0, 6 0, 6 2, 2 2, 2 0))
8 | LINESTRING(4 1, 7 1)
9 | LINESTRING(3 1, 8 1)
10 | LINESTRING(4 1, 8 1)
11 | POLYGON((4 0, 8 0, 8 2, 4 2, 4 0))
12 | POLYGON((4 0, 8 0, 8 2, 3 2, 3 0))
13 | POLYGON(1 1, 4 1, 4 4, 1 4, 1 1))
14 | POLYGON((0 0, 5 0, 5 5, 0 5, 0 0))
15 | POLYGON((1 0, 5 0, 5 5, 1 5, 1 0))
16 | MULTIPOINT(2 1, 3 1)
17 | LINESTRING(1 1, 2 1)

## Results

Comments or suggestions? Send us feedback.