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: 

Digitise Point

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
375 Views, 2 Replies

Digitise Point

From a new window I can digitise a point using javascript with a command:
opener.GetMapFrame().DigitizePoint(OnPointDigitized);

function OnPointDigitized(point) {



east = Math.round(point.X);

north = Math.round(point.Y);

}



Can I digitise from asp c# script, in which cases what is the equivalent
code?
2 REPLIES 2
Message 2 of 3
jackie.ng
in reply to: Anonymous

You have to understand the distinction between client and server.

The AJAX/DWF/Fusion viewer is the client.

Your scripts that use the Web API run on the server-side.

Digitizing geometries is a client-side function.

As a result, you can't really have client-side functionality (digitizing) on a server-side script.

What you can do however, is have your asp.net script Response.Write() out the required javascript code to digitize the geometry (ie. Response.Write() that javascript code)

Hope that helps.

- Jackie
Message 3 of 3
Anonymous
in reply to: Anonymous

jackie.ng wrote:
> What you can do however, is
> have your asp.net script Response.Write() out the required javascript
> code to digitize the geometry (ie. Response.Write() that javascript
> code)e

Or I suppose you could use the feature service to create the feature
(with appropriate geometry) directly via FDO?

It would look different than an interactively digitized feature (during
digitization), but it would show up as a feature on the map once you
refreshed it.

Jason

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

Post to forums  

Autodesk Design & Make Report