Zum Hauptinhalt gehen

MapPoint and BufferTask

Kommentare

11 Kommentare

  • Permanently deleted user

    Hi Mike,

        I have not gone directory from point to buffertask.  I am usually getting a feature from the point and then applying a buffer.  I would take a look at the properties tab and make sure the Buffer Spatial Reference is set.  I attached an image but it does not look like it is very good.  It demonstrates a common setup for our feature driven buffer.  Maybe you could try a feature and then if that works introduce or rather change to a graphic location.  The graphic loction may not have enough of a bound box to work or something like that.

    /customer/servlet/servlet.FileDownload?file=00P6000000e88UEEAY

    Louie

    Napa County GIS

    0
  • Permanently deleted user

    Mike,

    I would set the SpatialReference proprty of the map point which is the input to the buffer task first.

    To me, the Buffer task requires the geometry should have the spatial reference from the error message you have now.

    Munhwan

    0
  • Permanently deleted user

    The Mappoint comes from a Silverlight entry form with a customized GeoCode GUI.  So the MapPoint will need to come in as an argument.  The Spatial reference has been set and tested for both input and output spatial reference with the same error.  I've also tested adding the Mappoint to a new featureset and converting to a graphic.

    0
  • Permanently deleted user

    Mike,

      I found the same thing when I setup a workflow.  My best guess is that you need to make the point into a very small Box.  Maybe a Geocortex person will comment.

    Louie

    0
  • Permanently deleted user

    Mike,

    Do you know how to catch the server side transaction (BufferTask activity for example) using the fiddler? You can find an article how to do it in this support center.

    After seeting it, catch the fiddler instance when the request on BufferTask to see what the real request is, and you can experiment with the different input to the buffer taskon to the Geometry Service to find out why that error comes out.

    Secondly, to get the buffered gometry around the map point, I used the map envelop which (small bigger than a point like new envelop( point.x-0.5, point.y-0.5, point.x+0.5, point.y+0.5), and excute the Buffer Task around that geometry (not around a point).

    Is there a way to post your workflow file to here?

    Munhwan

    0
  • Permanently deleted user

    Munwhan, what would the syntax be in the Geometry input for creating a map envelope around that point on the BufferTask?  Thanks

    new ******(SourceXY.x-.5,SourceXY.x+0.5, SourceXY.y+0.5)

    0
  • Permanently deleted user

    Mike,

    With the second thought, I would not use the buffer task to get the buffered geometry at all around a point.

    By the way, if you want to zoom around the point, rather I set the extent to zoom the map around the point like 'extentToZoom = New Envelope(xmin, ymin, xmax, ymax)' where xmin = pt -buffer, xmax = pt + buffer etc..

    Munhwan

    0
  • Permanently deleted user

    After further testing difference types of Geometries including Envelope with the same error, I am back to the spatial reference.  Currently there is Buffer Spatial Reference and Input Spatial reference.  It is okay to have them both the same?  Is there additionally testing prior to the buffer task that I can perform on the spatial references?  Check Fiddler it provided me with the same error as the GUI provided.  Where do I go for the syntax on the call?

    0
  • Permanently deleted user

    you don't mind to post your workflow file (including any other setting information which is required to run the workflow) here so that the others can check it for you?

     

    0
  • Permanently deleted user

    Hi Mike,

    I agree with Munhwan's original statement. Please check that you set the spatial reference directly on your input Geometry object.

    If I assign "myGeom = new MapPoint(10,10)" and send that to the Buffer Task, it fails stating that the Geometry.SpatialReference is null. However right before the Buffer Task, if I assign "myGeom.SpatialReference = new SpatialReference(4326)", then the BufferTask succeeds, even without setting any spatial references in the Buffer Task itself.

    0
  • Permanently deleted user

    Thanks for the suggestion Paul.  It worked!  Thank again.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.