Coordinates in a database

Read

Yes

Write

Yes

JMap Server can connect to any relational database to extract X and Y coordinates that can be used as a spatial data source to create layers of points. The database must contain at least coordinate fields (numeric values) and a field with unique integer values to be used as element identifiers. An SQL query must be provided. This query will be executed to read the data and it can access one or many tables at the same time.

The connection to the database must already be configured. See Creating Databases for more information.

Database

Select the database to read the data from. It must already be configured in JMap Admin.

SQL query

Enter the SQL query used to extract coordinates and attributes from the database.

Geometry table

Select the physical table that effectively contains the x and y coordinate values. Pressing Load will retrieve the list of fields returned by the query. This action is necessary to configure the rest of the parameters.

X field

Select the field that contains the X values. Only numeric fields are listed.

Y field

Select the field that contains the Y values. Only numeric fields are listed.

Id field

Select a field that contains unique identifiers. Only integer fields are listed.

Creation time field

(Optional) If you want this data source to be editable by JMap, this field will show the creation date of each object. If no field is selected, the data can still be edited, but this information will not be maintained.

Modification date field

(Optional) If you want this data source to be editable by JMap, this field will contain the date each object was last modified. If no field is selected, the data can still be edited, but this information will not be maintained.

Author field

(Optional) If you want this data source to be editable by JMap, this field will either contain the name of the user who created each object or the name of the user who made the last change. If no field is selected, the data can still be edited, but this information will not be maintained.

Dernière mise à jour

K2 Geospatial 2024