<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">That was very informative. Thanks for your help.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Hans Milling [via OSGeo.org] [mailto:ml-node+<a href="/user/SendEmail.jtp?type=node&node=5284486&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>]
<br>
<b>Sent:</b> 07 September 2016 19:40<br>
<b>To:</b> Prasanth Sasidharan <<a href="/user/SendEmail.jtp?type=node&node=5284486&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>><br>
<b>Subject:</b> Re: How to best consume Map Data<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">I know that oracle as a SDO_UTIL.FROM_WKTGEOMETRY you can use in an insert or update statement.
<br>
<br>
You need to convert your points to WKT (Well Known Text). <br>
If you have the following data points that should turn into a polygon: <br>
x, y <br>
30, 10 <br>
40, 40 <br>
20, 40 <br>
10, 20 <br>
30, 10 <br>
<br>
TO write this in WKT format (Note that spaces devide each x and y and that comma devide each coordinate pair):
<br>
POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10)) <br>
<br>
You can do an: <br>
insert into mypolygons (attr1, attr2, geometrycolumn) Values(1, 'Name', SDO_UTIL.FROM_WKTGEOMETRY('POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))');
<br>
<br>
The table has to have a geometry column of type SDO_GEOMETRY to store the geometry data and for MapGuide to be able to display these. The geometry column you specify an SRID that tells the database what coordinate system the coordinates are in. Two system are
widely used. Either Latitude/Longitude in WGS84 that has SPID/EPSG 4326 or you are using your local EUREF89 UTM zone coordinates (A lot of different ID's are used, you can find them with a simple Google search).
<br>
<br>
Best regards <br>
Hans Milling... <o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" noshade="" style="color:#CCCCCC" align="center">
</div>
<div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#444444">If you reply to this email, your message will be added to the discussion below:<o:p></o:p></span></b></p>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#444444"><a href="http://osgeo-org.1560.x6.nabble.com/How-to-best-consume-Map-Data-tp5284418p5284464.html" target="_top" rel="nofollow" link="external">http://osgeo-org.1560.x6.nabble.com/How-to-best-consume-Map-Data-tp5284418p5284464.html</a>
<o:p></o:p></span></p>
</div>
<div style="margin-top:4.8pt">
<p class="MsoNormal" style="line-height:18.0pt"><span style="font-size:8.5pt;font-family:"Tahoma",sans-serif;color:#666666">To unsubscribe from How to best consume Map Data,
<a href="" target="_top" rel="nofollow" link="external">
click here</a>.<br>
<a href="http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" target="_top" rel="nofollow" link="external"><span style="font-size:7.0pt;font-family:"Times New Roman",serif">NAML</span></a>
<o:p></o:p></span></p>
</div>
</div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/How-to-best-consume-Map-Data-tp5284418p5284486.html">RE: How to best consume Map Data</a><br/>
Sent from the <a href="http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html">MapGuide Users mailing list archive</a> at Nabble.com.<br/>