24.10.2012 Views

Working with the geodatabase effectively using SQL - Esri

Working with the geodatabase effectively using SQL - Esri

Working with the geodatabase effectively using SQL - Esri

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating a <strong>SQL</strong> Server spatial index<br />

GEOGRAPHY TYPE<br />

CREATE SPATIAL INDEX spidx_geography<br />

ON world world_rivers rivers (geography (geography_col) col)<br />

USING GEOGRAPHY_GRID WITH (<br />

GRIDS = (LOW, LOW, MEDIUM, HIGH),<br />

CELLS CELLS_PER_OBJECT PER OBJECT = 64);<br />

GEOMETRY TYPE<br />

CREATE SPATIAL INDEX spidx spidx_geometry geometry<br />

ON parcels (geometry_col)<br />

USING GEOMETRY_GRID WITH (<br />

BOUNDING BOUNDING_BOX BOX = (0 (0, 00, 500 500, 200) 200),<br />

GRIDS = (MEDIUM, MEDIUM, MEDIUM, HIGH),<br />

CELLS_PER_OBJECT = 64);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!