View Full Version : topology examples
gis.68227
2004-06-07, 02:05 PM
Could someone point me in the direction of some scripts (lisp routines) that do two separate queries using two separate topologies? I am trying to narrow down where errors are coming from and would like an example to work off of. I think examples of using tpm_id, tpm_acopen and maybe tpm_acclose would be useful, I guessing. Thank you. TC
mjfarrell
2004-06-08, 12:24 PM
Why are you not simply performing this overlay topology query in MAP,
to verify that your topologies are both correct and complete for the task you are attempting.
Then after you have confirmed that your topologies are complet and correct with MAP,
you can fix whatever is happening to you lisp routine.
Or better post your LISP code as TEXT, and let some of us run it against
our data.
gis.68227
2004-06-08, 03:06 PM
Here is the lisp routine in question as an attachment. The lisp runs from a template that has the topologies already attached. The routine works much faster with attached drawings, but for multiple users I don't want to have to configure there MAP setups; plus, I'm trying something new. This lisp is to setup up an orthophoto printout.
I found out that node topologies do not save in paperspace (c:titlequeries was in paperspace).
Possible solution to paper space problem.
1) To make the node topology in model. Node topology of text
2) Alter text value according to script-routine
3) The last query is a location all with no alterations
4) Make sure the following is in script - (ade_prefsetval "MkSelSetWithQryObj" T). The last query makes a selection set of topology.
5) (command “copybase†“p†“0,0â€) - afterthought cutclip
6) (command “ctab†“layoutwhateverâ€)
7) (pspace)
8) (command “pasteclip†“p†“0,0â€)
I haven't tried it.
Thank you for the help.
On with the lisp:
mjfarrell
2004-06-09, 02:31 AM
Ok, I have seen the LISP code, and I wonder about two things.
Item one, why are the users MAP options not the same on all users
systems?
Item two, It would apprear that you are investing a lot of effort to do
with LISP what could be accomplished through use of your external
query library.
Not that you need explain this to me, only why are you not attempting to
do this with a saved query?
gis.68227
2004-06-09, 12:39 PM
Item One, each person has run their own systems for years. I am the only one with any knowledge of Map. The only program that has sparked an interest in others has been that LISP routine.
Item Two, the original LISP uses external drawings and runs very well. The LISP was constructed from modifying saved queries. The current LISP runs in under 5 seconds; the topology version will take just less than a minutes. The concern exists in trying to keep track of multiple files (images, drawings, scripts, templates, lisp routines). With all the drawings in one template, there will just that little bit less.
The purpose of this inquiry is to learn more about topologies and to remove as much input from other users as possible. I could give you an example of why this is required.
The question: Are there examples of MAP/LISP queries with the calling of more than one topology? Is the use of tpm_acload and tpm_qrysettoponame appropriate for calling multiple topologies, or is tpm_id, tpm_acopen, or tpm_acclose needed? If those other commands are needed, what is the syntax?
Thanks again,
TC
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.