Hello,
Is there any way based on any given US ZipCode, I want to draw a polygon shape or any other border shape..... of the given zip code as a border?? Is this possible??
Hello,
Is there any way based on any given US ZipCode, I want to draw a polygon shape or any other border shape..... of the given zip code as a border?? Is this possible??
Hi GS,
Sorry I don’t understand your question clearly, did you say you want to draw a bordered shape with its zip code on the border? If not, could you please make your question more clearer?
Thanks,
Edgar
Edgar,
Yes thats exactly my requirement was.
GS,
You can do it like this:
Collection<Feature> features = layer.GetFeaturesByColumnValue("ZipCode","123456",ReturningColumnType.AllColumns);
LineShape line = new LineShape(((PolygonShape)features[0].GetShape()).OuterRing.Vertices);
Feature lineFeature = new Feature(line);
lineFeature.ColumnValues.Add("ZipCode", "123456");
and then add the lineFeature to an InMemoryFeatureLayer to display it.
Hope it helps,
Edgar