> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# filter_by_area_geometry

### filter\_by\_area\_geometry

<ul>
  <li>
    filter\_by\_area\_geometry(\
    &#x20;table\_name: string,\
    &#x20;view\_name: string | undefined,\
    &#x20;column\_name: string,\
    &#x20;x\_vector: number\[],\
    &#x20;y\_vector: number\[],\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[FilterByAreaGeometryResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/FilterByAreaGeometryResponse.md)>

    Calculates which geospatial geometry objects from a table intersect a named area of interest (NAI/polygon). The operation is synchronous, meaning that a response will not be returned until all the matching objects are fully available. The response payload provides the count of the resulting set. A new resultant set (view) which satisfies the input NAI restriction specification is created with the name `view_name` passed in as part of the input.

    #### Parameters

    <ul>
      <li>
        table\_name: string

        Name of the table to filter, in \[schema\_name.]table\_name format, using standard name resolution rules. This may be the name of a table or a view (when chaining queries).
      </li>

      <li>
        view\_name: string | undefined

        If provided, then this will be the name of the view containing the results, in \[schema\_name.]view\_name format, using standard name resolution rules and meeting table naming criteria. Must not be an already existing table or view.
      </li>

      <li>
        column\_name: string

        Name of the geospatial geometry column to be filtered.
      </li>

      <li>
        x\_vector: number\[]

        List of x coordinates of the vertices of the polygon representing the area to be filtered.
      </li>

      <li>
        y\_vector: number\[]

        List of y coordinates of the vertices of the polygon representing the area to be filtered.
      </li>

      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[FilterByAreaGeometryResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/FilterByAreaGeometryResponse.md)>

    Promise\<Types.FilterByAreaGeometryResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:9286](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L9286)</li>
    </ul>
  </li>
</ul>

### filter\_by\_area\_geometry\_request

<ul>
  <li>
    filter\_by\_area\_geometry\_request(\
    &#x20;request: [FilterByAreaGeometryRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/FilterByAreaGeometryRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md),\
    ): Promise\<[FilterByAreaGeometryResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/FilterByAreaGeometryResponse.md)>

    Calculates which geospatial geometry objects from a table intersect a named area of interest (NAI/polygon). The operation is synchronous, meaning that a response will not be returned until all the matching objects are fully available. The response payload provides the count of the resulting set. A new resultant set (view) which satisfies the input NAI restriction specification is created with the name `view_name` passed in as part of the input.

    #### Parameters

    <ul>
      <li>
        request: [FilterByAreaGeometryRequest](https://docs.kinetica.com/content/api/nodejs/interfaces/FilterByAreaGeometryRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/nodejs/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[FilterByAreaGeometryResponse](https://docs.kinetica.com/content/api/nodejs/interfaces/FilterByAreaGeometryResponse.md)>

    Promise\<Types.FilterByAreaGeometryResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:9249](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L9249)</li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.