- In the Infrastructure Administrator, do one of the following:
- Click Enterprise and connect to the enterprise industry model. Open a project.
- Click File and open an industry model drawing or template.
- Select the Industry Model node for the report.
- On the Administrator toolbar, click the Report Designer icon .
- Open a report.
- Click the Detail Body 1 section.
- On the Design tab, in the Group Detail category, click the SQL property.
- Define a query that selects the features which are located in the perimeter.
- Click Add DB Column and select the attributes to display.
- If needed, add more controls, and save the report.
Example: Query to select features within a perimeter.
select P.FID from GA_PIPE P, GA_LINE T
WHERE P.FID = T.FID_ATTR AND
({parameter.PERIMETERID}=0
or SDO_RELATE(T.geom, (SELECT geom FROM TB_PERIMETER
WHERE id={parameter.PERIMETERID}),
'mask=anyinteract query=window')='TRUE')
GROUP BY P.FID ORDER BY P.FID
The parameter SPATIALMASK is only set if it is in the report definition. Sample SQL statement:
WHERE
{parameter.PERIMETERID}=0
OR SDO_RELATE(T.geom, (SELECT geom FROM TB_PERIMETER
WHERE id={parameter.PERIMETERID}),
'mask={parameter.SPATIALMASK} query=window')='TRUE'
For more information about using the spatial selection reports, see "Using Spatial Export" in the User's Guide.