| Numéro d’ID de bogue |
BUG-000160511 |
| Envoi | August 9, 2023 |
| Dernière modification | December 1, 2025 |
| S’applique à | Portal for ArcGIS |
| Version trouvée | 10.8.1 |
| Système d’exploitation | Windows Server |
| Version du système d’exploitation | N/A |
| Statut | Non-Reproducible
Ce problème n’a pas pu être reproduit au cours des tests réalisés par l’équipe de développement. Ce statut peut être attribué aux problèmes qui sont impossibles à reproduire ou qui ne sont plus d’actualité dans une version de développement du logiciel, alors qu’aucun correctif spécifique n’a été installé pour résoudre le problème. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
The SQL produces some geometries that are not oriented correctly.
Use one of the following two options to resolve the issue.
Option 1: Reorient large polygons.
SELECT
Iif(Shape.STArea() > 510065620000000, Shape.ReorientObject(), Shape) as Shape, OID
FROM (SELECT OID
,case when left(workarea,3) = 'Pol' then geography::STPolyFromText(WorkArea,4326).MakeValid()
else geography::STGeomFromText(WorkArea,4326).MakeValid().STBuffer(15.24) end as Shape
FROM aTable) a
Option 2: Use Geometry instead of Geography.
SELECT Shape, OID,Shape.STArea() as Area
FROM (SELECT OID
,case when left(workarea,3) = 'Pol' then Geometry::STPolyFromText(WorkArea,4326).MakeValid()
else Geometry::STGeomFromText(WorkArea,4326).MakeValid().STBuffer(15.24) end as Shape
FROM aTable) a
Étapes pour reproduire
ID de bogue: BUG-000160511
Logiciel: