![]() |
|||||||||||
| |||||||||||
![]() |
|
|
Outils de la discussion | Rechercher | Modes d'affichage |
|
(#1)
|
|
|||
[MapInfo 8.x] Sélection d'objets contenu dans un objet d'une autre table -
09/07/2009, 11h56
Bonjour
Je voudrais savoir comment on fait pour sélectionner des objets linéaires d'une table contenus entièrement à l'intérieur d'un objet polygone d'une autre table? J'ai MapInfo 8.0 Merci Arnaud |
|
(#2)
|
|
(#3)
|
|
||||
|
Si ils sont sur des tables distincte deux solutions:
Soit en passant par le controle des couche et en rendant non sélectionnable la couche contenant le polygone. Soit en appuyant sur ctrl et en cliquant sur l'objet jusqu'a ce qu'il sélectionne le bon. Lorsque la plume trouve un peu d'encre, alors le papier s'embellit.
|
|
(#4)
|
|
(#5)
|
|
||||
|
La requète sélectionnera tous les linéaires situé dans le polygone.
Désolé, je n'avais pas compris qu'Arnaud voulait juste sélectionner quelques linéaires. A+ Joël |
|
(#6)
|
|
|||
|
Effectivement je veux sélectionner tous les linéaires d'une table contenu dans un polygone bien distinct d'une autre table qui contient plusieurs polygones.
Je suis débutant en sélection sql, pouvez-vous me donner plus d'indications pour s'en servir s'il vous plait? Merci |
|
(#7)
|
|
(#8)
|
|
||||
|
Si tu veux sélectionner quelques linéaires ---> Voir soluce de Séra.
Maintenant si tu veux sélectionner tous les linéaires contenus dans un seul polygone Ma requète te sélectionnera tous les linéaires contenus dans tous les Polygones. Pour n'avoir que les linéaires contenus dans le polygone que tu désires il faut intégrer dans ma requète une sous requète qui te sélectionnera le polygone dans un premier temps puis les linéaires contenus dans celui-ci. A+ Joël ******* EDIT ******* Quelle est la sélection possible pour ton polygone? La couleur, le nom, etc....? Code:
Select * from Ta_Table_Lineaires where obj within any
(select obj from Ta_Table_Polygones where Ton_Critere_de_Selection) into Mes_Lineaires
EDIT ******* Ce que tu peux faire: Faire une sélection manuelle de ton polygone. Aprés ta sélection: Placer la requète dans la FMB ---> Fenêtre Mapbasic ---> Options --> Voir Fenêtre Mapbasic. Requète: Code:
Select * from Ta_Table_Lineaires, Selection where Ta_Table_Lineaires.obj within Selection.obj into Mes_Lineaires ----> Voir dans Tables ---> liste des Tables ouvertes ---> Tu devrais avoir "Mes_Lineaires" A+ Joël |
|
(#9)
|
|
(#10)
|
|
||||
|
Tu appuis sur la touche entré.
Normalement la requête te sélectionne toute les ligne dans ton polygone. Lorsque la plume trouve un peu d'encre, alors le papier s'embellit.
|
|
(#11)
|
|
|||
|
RE
J'ai donc sélectionné mon polygone, édité ma requête, appuyé sur entrée, et là dans la fenêtre mapbasic, pleins de choses s'affiche du style: Select * from TRONCONS_SUR_LES_PAS_DE_RADGON, Selection where TRONCONS_SUR_LES_PAS_DE_RADGON.obj within Selection.obj into Mes_Lineairesset map redraw off Set Map Layer 8 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 9 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 10 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 11 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 12 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 13 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 14 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 15 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 16 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 17 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 18 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 19 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 20 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 21 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 22 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 23 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 24 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 25 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 26 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 27 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 28 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 29 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 30 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 31 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 32 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 33 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 34 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 35 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 36 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 37 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 38 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 39 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 40 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 41 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 42 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 43 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 44 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 45 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 46 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 47 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 48 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 49 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off set map redraw on set map redraw off Set Map Layer 8 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 9 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 10 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 11 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 12 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 13 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 14 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 15 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 16 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 17 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 18 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 19 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 20 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 21 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 22 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 23 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 24 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 25 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 26 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 27 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 28 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 29 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 30 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 31 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 32 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 33 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 34 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 35 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 36 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 37 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 38 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 39 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 40 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 41 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 42 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 43 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 44 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 45 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 46 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 47 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 48 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off Set Map Layer 49 contrast 50 brightness 50 alpha 255 transparency off color 0 grayscale off set map redraw on Mais bon sur ma carte aucune sélection est faite mise à part la sélection de mon polygone |
|
(#12)
|
|
||||
|
Tu as mis ceci:
Select * from TRONCONS_SUR_LES_PAS_DE_RADGON, Selection where TRONCONS_SUR_LES_PAS_DE_RADGON.obj within Selection.obj into Mes_Lineaires ---> puis tu as valider c'est ça |
|
(#13)
|
|
(#14)
|
|
||||
|
Je dis peut être des banalités mais avant de faire une sélection, vérifier que la couche est sélectionnable. Je l'ai pas vu mentionné dans les posts...
J'en voudrais à personne si c'est supprimé car inutile! |
|
(#15)
|
|
|||
|
Mes deux tables sont sélectionnables
![]() ******* EDIT ******* J'ai refait toute la manip depuis le début et ça marche toujours pas et il me met cette fois-ci variable ou champ selction.obj non défini |
![]() |
| Tags |
| contenu, d'objets, sélection |
| Outils de la discussion | Rechercher |
| Modes d'affichage | |
|
|
Discussions similaires
|
||||
| Discussion | Auteur | Forum | Réponses | Dernier message |
| [ArcGIS 9.x] Découpage d'objets situés à l'extérieur d'objets d'une autre couche | Lionel18 | Assistance Technique | 5 | 12/09/2007 17h24 |
| [ArcGIS 9.x] Sélection dans table d'attributs | macfly1983 | Programmation | 7 | 01/07/2005 11h11 |
| [MapServer] Création dynamique de points par lecture d'une table dans une base Mysql | Kaiser | Assistance et Programmation | 15 | 16/06/2005 16h45 |
| [MapBasic 7.x] Sélection d'une case dans une table | loka | Programmation | 2 | 06/05/2005 16h30 |
| [ArcGIS 8.x] Copier objet dans une autre couche | rine | Assistance Technique | 3 | 19/04/2005 16h01 |