ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

ST_MPointFromWKB

  • Définition
  • Syntaxe
  • Type de retour
  • Exemple

Définition

ST_MPointFromText prend une représentation binaire connue (WKB) de type ST_MultiPoint et un identifiant de référence spatiale et crée un ST_MultiPoint.

Syntaxe

Oracle

sde.st_mpointfromwkb (wkb blob, srid integer)

sde.st_mpointfromwkb (wkb blob)

Si aucun identifiant de référence spatiale n’est spécifié, la référence spatiale par défaut est 4326.

PostgreSQL

sde.st_mpointfromwkb (wkb bytea, srid integer)

SQLite

st_mpointfromwkb (wkb blob, srid int32)

st_mpointfromwkb (wkb blob)

Si aucun identifiant de référence spatiale n’est spécifié, la référence spatiale par défaut est 4326.

Type de retour

ST_MultiPoint

Exemple

Cet exemple illustre l’utilisation de la fonction ST_MPointFromWKB pour la création d’un objet multi-points à partir de sa représentation binaire connue. La géométrie est un objet multi-points dans le système de référence spatiale 4326. Dans cet exemple, l’objet multi-points est stocké avec ID = 10 dans la colonne GEOMETRY de la table SAMPLE_MPOINTS, et la colonne WKB est mise à jour avec sa représentation binaire connue (avec la fonction ST_AsBinary). Enfin, la fonction ST_MPointFromWKB est utilisée pour renvoyer l’objet multipoint depuis la colonne WKB. La table SAMPLE_MPOINTS a une colonne GEOMETRY, où est stocké l'objet multipoint et une colonne WKB, où est stockée la représentation binaire connue de l'objet multipoint.

Dans l'instruction SELECT suivante, la fonction ST_MPointFromWKB permet de récupérer l'objet multipoint de la colonne WKB.

Oracle

CREATE TABLE sample_mpoints (
 id integer,
 geometry sde.st_geometry,
 wkb blob
);
INSERT INTO SAMPLE_MPOINTS (id, geometry) VALUES (
 10,
 sde.st_multipoint ('multipoint (4 14, 35 16, 24 13)', 4326)
);
UPDATE SAMPLE_MPOINTS
 SET wkb = sde.st_asbinary (geometry)
 WHERE id = 10;
SELECT id, sde.st_astext (sde.st_mpointfromwkb (wkb,4326)) MULTI_POINT
 FROM SAMPLE_MPOINTS
 WHERE id = 10;
ID 	  MULTI_POINT 
10    MULTIPOINT (4.00000000 14.00000000, 35.00000000 16.00000000 24.00000000 13.00000000)

PostgreSQL

CREATE TABLE sample_mpoints (
 id integer,
 geometry sde.st_geometry,
 wkb bytea
);
INSERT INTO sample_mpoints (id, geometry) VALUES (
 10,
 sde.st_multipoint ('multipoint (4 14, 35 16, 24 13)', 4326)
);
UPDATE sample_mpoints
 SET wkb = sde.st_asbinary (geometry)
 WHERE id = 10;
SELECT id, sde.st_astext (sde.st_mpointfromwkb (wkb,4326)) 
 AS "MULTI_POINT"
 FROM sample_mpoints
 WHERE id = 10;
id 	  MULTI_POINT 
10     MULTIPOINT (4 14, 35 16, 24 13)

SQLite

CREATE TABLE sample_mpoints (
 id integer,
 wkb blob
);
SELECT AddGeometryColumn (
 NULL,
 'sample_mpoints',
 'geometry',
 4326,
 'multipointzm',
 'xyzm',
 'null'
);
INSERT INTO SAMPLE_MPOINTS (id, geometry) VALUES (
 10,
 st_multipoint ('multipoint (4 14, 35 16, 24 13)', 4326)
);
UPDATE sample_mpoints
 SET wkb = st_asbinary (geometry)
 WHERE id = 10;
SELECT id AS "ID",
 st_astext (st_mpointfromwkb (wkb,4326)) 
 AS "MULTI_POINT"
 FROM sample_mpoints
 WHERE id = 10;
ID 	  MULTI_POINT 
10    MULTIPOINT ( 4.00000000 14.00000000, 35.00000000 16.00000000, 24.00000000 13.00000000)

Rubriques connexes

  • Charger la bibliothèque ST_Geometry SQLite

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2021 Esri. | Confidentialité | Légal