# S57 Layer

**URL:** <https://community.thinkgeo.com/t/s57-layer/1650>\
**Category:** WinForms\
**Created:** [March 30, 2011, 4:23am UTC](https://community.thinkgeo.com/t/s57-layer/1650 "2011-03-30T04:23:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mostafa](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/f0a364/32.png) [@Mostafa](https://community.thinkgeo.com/u/Mostafa)\
**Post date:** [March 30, 2011, 4:23am UTC](https://community.thinkgeo.com/t/s57-layer/1650/1 "2011-03-30T04:23:43Z")

</div>

Hi&nbsp;there,

I'm&nbsp;trying&nbsp;to&nbsp;render&nbsp;S57&nbsp;data&nbsp;cells&nbsp;into&nbsp;Desktop&nbsp;component,&nbsp;but&nbsp;I'm&nbsp;not&nbsp;sure&nbsp;if&nbsp;what&nbsp;I'm&nbsp;doing&nbsp;is&nbsp;right..

The&nbsp;S57&nbsp;file&nbsp;has&nbsp;got&nbsp;5&nbsp;classes&nbsp;"Area",&nbsp;"Point",&nbsp;"Line",&nbsp;"DSID"&nbsp;and&nbsp;"Meta"&nbsp;in&nbsp;my&nbsp;code&nbsp;I&nbsp;was&nbsp;able&nbsp;to&nbsp;fetch&nbsp;the&nbsp;features&nbsp;for&nbsp;the&nbsp;first&nbsp;three&nbsp;classes,&nbsp;but&nbsp;the&nbsp;others&nbsp;threw&nbsp;exceptions..&nbsp;I&nbsp;believe&nbsp;the&nbsp;other&nbsp;two&nbsp;classes&nbsp;contain&nbsp;meta&nbsp;data&nbsp;needed&nbsp;for&nbsp;styling&nbsp;features&nbsp;and&nbsp;informational&nbsp;data

I&nbsp;would&nbsp;really&nbsp;appreciate&nbsp;it&nbsp;if&nbsp;you&nbsp;can&nbsp;advice&nbsp;as&nbsp;how&nbsp;to&nbsp;get&nbsp;the&nbsp;data&nbsp;stored&nbsp;in&nbsp;"DSID"&nbsp;and&nbsp;"META"&nbsp;classes...

Here&nbsp;is&nbsp;snippet&nbsp;of&nbsp;the&nbsp;code&nbsp;I'm&nbsp;using:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S57FeatureLayer&nbsp;areaLayer&nbsp;=&nbsp;new&nbsp;S57FeatureLayer(@"c:\\US3MI60M.000",&nbsp;null,&nbsp;"OGRSchema",&nbsp;"Area");  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;areaLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle&nbsp;=&nbsp;new&nbsp;AreaStyle(new&nbsp;GeoPen(GeoColor.SimpleColors.Black,&nbsp;2),&nbsp;new&nbsp;GeoSolidBrush(new&nbsp;GeoColor(0,&nbsp;GeoColor.SimpleColors.Black)));//&nbsp;AreaStyles.Country1;  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;areaLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel&nbsp;=&nbsp;ApplyUntilZoomLevel.Level20;  
  
  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S57FeatureLayer&nbsp;pointLayer&nbsp;=&nbsp;new&nbsp;S57FeatureLayer(@"c:\\US3MI60M.000",&nbsp;null,&nbsp;"OGRSchema",&nbsp;"Point");  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pointLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle&nbsp;=&nbsp;new&nbsp;PointStyle(PointSymbolType.Circle,&nbsp;new&nbsp;GeoSolidBrush(GeoColor.SimpleColors.Transparent),&nbsp;new&nbsp;GeoPen(GeoColor.SimpleColors.Green),&nbsp;1);  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pointLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel&nbsp;=&nbsp;ApplyUntilZoomLevel.Level20;  
  
  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S57FeatureLayer&nbsp;lineLayer&nbsp;=&nbsp;new&nbsp;S57FeatureLayer(@"c:\\US3MI60M.000",&nbsp;null,&nbsp;"OGRSchema",&nbsp;"Line");  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lineLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle&nbsp;=&nbsp;new&nbsp;LineStyle(new&nbsp;GeoPen(GeoColor.SimpleColors.Red));  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lineLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel&nbsp;=&nbsp;ApplyUntilZoomLevel.Level20;  
  
  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S57FeatureSource&nbsp;metaLayer&nbsp;=&nbsp;new&nbsp;S57FeatureSource(@"c:\\US3MI60M.000",&nbsp;null,&nbsp;"OGRSchema",&nbsp;"Meta");  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;metaLayer.Open();  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Collection\<feature\>&nbsp;featuresMeta&nbsp;=&nbsp;metaLayer.GetAllFeatures(ReturningColumnsType.AllColumns);  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;metaLayer.Close();&nbsp;  
  
&nbsp;  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LayerOverlay&nbsp;layerOverlay&nbsp;=&nbsp;new&nbsp;LayerOverlay();  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;layerOverlay.Layers.Add(areaLayer);  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;layerOverlay.Layers.Add(pointLayer);  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;layerOverlay.Layers.Add(lineLayer);  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;winformsMap1.Overlays.Add(layerOverlay);\</feature\>

&nbsp;

I&nbsp;sent&nbsp;the&nbsp;S57&nbsp;file&nbsp;to&nbsp;support@thinkgeo.com,&nbsp;Subject:&nbsp;S57&nbsp;Layer

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [March 31, 2011, 12:01am UTC](https://community.thinkgeo.com/t/s57-layer/1650/2 "2011-03-31T00:01:39Z")

</div>

Mostafa,

Thanks&nbsp;for&nbsp;your&nbsp;detail&nbsp;information&nbsp;about&nbsp;your&nbsp;problem.

We&nbsp;are&nbsp;on&nbsp;the&nbsp;initial&nbsp;stage&nbsp;of&nbsp;supporting&nbsp;S57&nbsp;data,&nbsp;so&nbsp;up&nbsp;to&nbsp;now&nbsp;I&nbsp;am&nbsp;afraid&nbsp;we&nbsp;don't&nbsp;support&nbsp;DSID&nbsp;&&nbsp;Meta,&nbsp;sorry&nbsp;for&nbsp;the&nbsp;inconvinience&nbsp;now.

There&nbsp;is&nbsp;another&nbsp;post&nbsp;discussing&nbsp;the&nbsp;same&nbsp;topic,&nbsp;you&nbsp;can&nbsp;look&nbsp;at&nbsp;it  
  
[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/6383/afv/topic/Default.aspx)

Thanks,

James  
  
&nbsp;

---

<div class="post-metadata">

**Author:** ![Mostafa](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/f0a364/32.png) [@Mostafa](https://community.thinkgeo.com/u/Mostafa)\
**Post date:** [March 31, 2011, 4:43am UTC](https://community.thinkgeo.com/t/s57-layer/1650/3 "2011-03-31T04:43:40Z")

</div>

Thank&nbsp;you&nbsp;James&nbsp;for&nbsp;this…&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;ideas&nbsp;you&nbsp;can&nbsp;advise&nbsp;about&nbsp;your&nbsp;next&nbsp;stage&nbsp;of&nbsp;supporting&nbsp;S57&nbsp;fully?&nbsp;and&nbsp;how&nbsp;soon&nbsp;this&nbsp;would&nbsp;be?&nbsp;  
&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [April 1, 2011, 4:40am UTC](https://community.thinkgeo.com/t/s57-layer/1650/4 "2011-04-01T04:40:26Z")

</div>

Mostafa,&nbsp;  
&nbsp;&nbsp;  
&nbsp;You’re&nbsp;welcome,&nbsp;currently&nbsp;we&nbsp;don’t&nbsp;have&nbsp;plan&nbsp;to&nbsp;enhance&nbsp;S57&nbsp;layer.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;James
