get_geo_json
- get_geo_json(
table_name: string,
offset?: number,
limit?: number,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<Record<string, any>>Parameters
- table_name: string
Table to read from
Optionaloffset: numberRecord offset; defaults to 0
Optionallimit: numberMaximum records to return; defaults to 10000
Optionaloptions: Record<string, string>Optional parameters for
/get/recordsOptionalcallback: GPUdbCallbackOptional callback function
Returns Promise<Record<string, any>>
Promise resolving to the GeoJSON FeatureCollection
Example
- Defined in src/GPUdb.ts:15877
- table_name: string
Retrieves records from a table as a GeoJSON FeatureCollection.
A convenience wrapper over
/get/recordswithencodingforced togeojson, unwrapping the single encoded document the server returns.