Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Select SDF features not already loaded

5 REPLIES 5
Reply
Message 1 of 6
Flipper4444
227 Views, 5 Replies

Select SDF features not already loaded

I had been told that MG 6.3 would allow users to select and zoom to features that were not already loaded. Our customer has over 150,000 parcels, we do not want them turned on at the initial view for the sake of speed...they will turn on when they zoom in, however very often they will run a query that requires them to zoom to a parcel that is not cached..doesn't the normal MG API allow for a search of an objects key in the SDF in order to zoom to that objects geometry, or bare minimum calculated the objects extent...It seems crazy to write an SDFCOMTOOLKIT script to do this when it is so common to GIS. If not avail in 6.3 could someone send me a select by KEY and zoomto function done in ComToolkit so that I don't have to reinvent it.
5 REPLIES 5
Message 2 of 6
LochDhu
in reply to: Flipper4444

Set up a ZoomGoTo using the parcels sdf.

The use zoomGotoLocation via the API.

Good Luck,

Scott
Message 3 of 6
Anonymous
in reply to: Flipper4444

Flipper,

You only need the MapGuide API to accomplish this,
not the SDF COM Toolkit.  You first have to write a Zoom Goto in MapGuide
Author based on your Parcels data.  This is an out-of-the-box
functionality of MapGuide.  Then, as Scott said, write a JavaScript
function using the zoomGotoLocation() method against this Zoom Goto.  In
order to select the object, you should use the onViewChanged() event so
that once the script has zoomed to the proper parcel, you then use the
addObject() or addObjectsEX() methods to actually select the object.  You
need to use onViewChanged() event since the map will be in a busy state while
the zoom goto is being executed.  Take a look at the API help documentation
for more information on these methods and events.

 


--
Andy Morsell, P.E.
Spatial
Integrators, Inc.

href="http://www.spatialgis.com">http://www.spatialgis.com



style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
had been told that MG 6.3 would allow users to select and zoom to features
that were not already loaded. Our customer has over 150,000 parcels, we do not
want them turned on at the initial view for the sake of speed...they will turn
on when they zoom in, however very often they will run a query that requires
them to zoom to a parcel that is not cached..doesn't the normal MG API allow
for a search of an objects key in the SDF in order to zoom to that objects
geometry, or bare minimum calculated the objects extent...It seems crazy to
write an SDFCOMTOOLKIT script to do this when it is so common to GIS. If not
avail in 6.3 could someone send me a select by KEY and zoomto function done in
ComToolkit so that I don't have to reinvent it.
Message 4 of 6
Flipper4444
in reply to: Flipper4444

There are multiple objects to zoom to...
...in a better context:
The zoom button is being designed through an interface, so pre-authored ZoomGotos are not an option...They select the database field that has the Keys in it, and then select the layers from a drop-down menu that might have those keys in them....
Message 5 of 6
Anonymous
in reply to: Flipper4444

Per our conversation and so others know, a
potential solution I see to this is to use the Dynamic Authoring Toolkit to
define the zoom goto within a streamed MWF based on the users input.  DAT
is a great tool for what you are doing, you could potentially create a web based
interface to allow users to define almost every aspect of their own maps
including layer styles and datasources, zoom gotos, themes, etc. 
Good luck with this and keep us posted how things go.

 


--
Andy Morsell, P.E.
Spatial
Integrators, Inc.

href="http://www.spatialgis.com">http://www.spatialgis.com


 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
There
are multiple objects to zoom to...
...in a better context:
The zoom
button is being designed through an interface, so pre-authored ZoomGotos are
not an option...They select the database field that has the Keys in it, and
then select the layers from a drop-down menu that might have those keys in
them....
Message 6 of 6
Anonymous
in reply to: Flipper4444

On Tue, 14 Oct 2003 13:59:11 -0700, flipper wrote:

> There are multiple objects to zoom to...
> ...in a better context:
> The zoom button is being designed through an interface, so pre-authored
> ZoomGotos are not an option...They select the database field that has
> the Keys
> in it, and then select the layers from a drop-down menu that might have
> those
> keys in them....

It's off to the SDF Toolkit for you.

One problem you might watch for is a DB query that returns parcels that
are located so far apart the parcels layer will be off at the scale you'll
need to zoom to. One way we've worked around this is to add a point layer
with the centroid of each of the selected parcels.

--
James Card

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report