This project has moved and is read-only. For the latest updates, please go here.

zoom to featuredataset using Map.ZoomToBox(Envelope env)

Topics: SharpMap v0.9 / v1.x
May 31, 2016 at 6:08 AM
I want to zoom to an spacial featureddata row in map. I can not convert Igeomety to envelope.How Can I do that?
here is my code
    public void ZoomToAParcel(SharpMap.Data.FeatureDataRow fdr)

        private void zoomToEnvelope(IGeometry envelope)
            _map.Map.ZoomToBox(envelope);-->>Give type conversation error
            throw new NotImplementedException();
May 31, 2016 at 6:20 AM
You can get the bounding box using the EnvelopeInternal property of your geometry.
Marked as answer by am2 on 5/30/2016 at 10:26 PM
May 31, 2016 at 6:29 AM
thank you so much..
Can you please give me a bit more information about showing a result of sql storeprocedure on map?
I know how to use sqlserver provider,Should I type 'storeprocedure id,name' in tablename?
May 31, 2016 at 7:00 AM
Stored procedures currently don't work
May 31, 2016 at 7:30 AM
FObermaier wrote:
Stored procedures currently don't work
Thanks I figure out and find that I can use functions and they works fine