zoom to featuredataset using Map.ZoomToBox(Envelope env)

Topics: SharpMap v0.9 / v1.x
May 31 at 5:08 AM
Hi,
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)
        {
            
            zoomToEnvelope(fdr.Geometry.Envelope);
        }

        private void zoomToEnvelope(IGeometry envelope)
        {
            _map.Map.ZoomToBox(envelope);-->>Give type conversation error
            
            throw new NotImplementedException();
        }
Coordinator
May 31 at 5: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 at 5: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?
Coordinator
May 31 at 6:00 AM
Stored procedures currently don't work
May 31 at 6: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