Problème d'affichage d'une couche provenant d'une source de données de type SQL Server Spatial / Problem displaying a layer from a SQL Server Spatial data source

Produit concerné / Related product

JMap AdminVersions6.5, 7.0


Jump to English version


Problème

La couche de données qui découle d'une source de données de type SQL Server Spatial ne s'affiche pas dans un projet ou même dans un déploiement.

Solution

Ce problème peut être lié à l'indicateur de référence spatiale (SRID). Voici la solution :

  1. Assurez-vous que l'identificateur de référence spatiale (SRID) est configuré dans la table SQL.
    1. Voici la requête qui permet de voir si le SRID est configuré : select distinct geom.STSrid from matable
    2. Idéalement il devrait avoir un seul SRID pour tous les tuples de la table.

  2. Si le SRID n'est pas configuré, voici la requête SQL pour le faire : update matable set geom.STSrid=4326
    1. Le numéro du SRID doit correspondre au numéro EPSG de la projection.

  3. Une fois le SRID configuré, configurez votre source de données spatiales dans JMap Admin avec la même projection que le SRID configuré dans la table.



English version

Problem

The layer from a SQL Server Spatial data source is not displayed in a project or even in a deployment.

Solution

This problem may be related to the spatial reference indicator (SRID). Here is the solution:

  1. Ensure that the spatial reference identifier (SRID) is configured in the SQL table.
    1. Here is the query to see if the SRID is configured: select distinct geom.STSrid from matable
    2. Ideally he should have only one SRID for all tuples of the table.

  2. If the SRID is not configured, here is the SQL query to do so: update matable set geom.STSrid = 4326
    1. The SRID number must match the EPSG number of the projection.

  3. Once the SRID is configured, configure your spatial data source in JMap Admin with the same projection as the configured SRID in the table.