• <tfoot id='kkukL'></tfoot>
    <legend id='kkukL'><style id='kkukL'><dir id='kkukL'><q id='kkukL'></q></dir></style></legend>
    <i id='kkukL'><tr id='kkukL'><dt id='kkukL'><q id='kkukL'><span id='kkukL'><b id='kkukL'><form id='kkukL'><ins id='kkukL'></ins><ul id='kkukL'></ul><sub id='kkukL'></sub></form><legend id='kkukL'></legend><bdo id='kkukL'><pre id='kkukL'><center id='kkukL'></center></pre></bdo></b><th id='kkukL'></th></span></q></dt></tr></i><div id='kkukL'><tfoot id='kkukL'></tfoot><dl id='kkukL'><fieldset id='kkukL'></fieldset></dl></div>

    1. <small id='kkukL'></small><noframes id='kkukL'>

        <bdo id='kkukL'></bdo><ul id='kkukL'></ul>

        美国所有州的 iOS 覆盖(MKPolygon)数据?

        时间:2023-09-01

        <i id='wFC6z'><tr id='wFC6z'><dt id='wFC6z'><q id='wFC6z'><span id='wFC6z'><b id='wFC6z'><form id='wFC6z'><ins id='wFC6z'></ins><ul id='wFC6z'></ul><sub id='wFC6z'></sub></form><legend id='wFC6z'></legend><bdo id='wFC6z'><pre id='wFC6z'><center id='wFC6z'></center></pre></bdo></b><th id='wFC6z'></th></span></q></dt></tr></i><div id='wFC6z'><tfoot id='wFC6z'></tfoot><dl id='wFC6z'><fieldset id='wFC6z'></fieldset></dl></div>
          <bdo id='wFC6z'></bdo><ul id='wFC6z'></ul>

            1. <small id='wFC6z'></small><noframes id='wFC6z'>

                <tfoot id='wFC6z'></tfoot>
                  <tbody id='wFC6z'></tbody>
                <legend id='wFC6z'><style id='wFC6z'><dir id='wFC6z'><q id='wFC6z'></q></dir></style></legend>

                  本文介绍了美国所有州的 iOS 覆盖(MKPolygon)数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  在 的 SW15" rel="nofollow noreferrer">在地图上显示叠加层 部分iOS 开发者库 Location Awareness Programming Guide,有一个示例显示覆盖科罗拉多州的填充和描边覆盖".

                  In the Displaying Overlays on a Map section of the iOS Developer Library Location Awareness Programming Guide, there is an example that "shows a filled and stroked overlay covering the state of Colorado."

                  // Define an overlay that covers Colorado.
                  CLLocationCoordinate2D  points[4];
                  
                  points[0] = CLLocationCoordinate2DMake(41.000512, -109.050116);
                  points[1] = CLLocationCoordinate2DMake(41.002371, -102.052066);
                  points[2] = CLLocationCoordinate2DMake(36.993076, -102.041981);
                  points[3] = CLLocationCoordinate2DMake(36.99892, -109.045267);
                  
                  MKPolygon* poly = [MKPolygon polygonWithCoordinates:points count:4];
                  poly.title = @"Colorado";
                  
                  [map addOverlay:poly];
                  

                  问题是否有美国所有 50 个州的坐标数据源使用相同的纬度/经度数据,并且可以随时免费获得?

                  Question Is there a source of coordinate data for all 50 U.S. states using this same latitude/longitude data readily and freely available?

                  推荐答案

                  在 Google 上搜索 us state outline geo coordinates 发现 stackoverflow 问题 州/省的地理边界 -> Google Maps Polygon,其答案链接到 美国各州多边形的 XML(科罗拉多州数据如下).

                  Ran a Google search for us state outline geo coordinates and found stackoverflow question Geographical boundaries of states/provinces -> Google Maps Polygon, which has an answer linking to XML for US state polygons (Colorado data below).

                  <state name="Colorado" colour="#880000">
                    <point lat="37.0004" lng="-109.0448"/>
                    <point lat="36.9949" lng="-102.0424"/>
                    <point lat="41.0006" lng="-102.0534"/>
                    <point lat="40.9996" lng="-109.0489"/>
                    <point lat="37.0004" lng="-109.0448"/>
                  </state>
                  

                  我还发现 美国州和国家边界坐标,链接到 NationalAtlas.com,一级行政边界(州),美国,2005 年,但这些数据看起来比我需要的要精确得多.

                  I also found US State and Country border coordinates with a link to NationalAtlas.com, First Level Administrative Boundaries (States), United States, 2005, but that data looks much more precise than I need.

                  另一个数据来源是州边界数据集它链接到一个文件,其中包含构成州边界的线段的地理坐标"(下面的科罗拉多数据).

                  Another source of data was The State Border Data Set which linked to a file with "geographic coordinates of the line segments that make up the state borders" (Colorado data below).

                  bordindx, st1st2, milemark, lat, long, st1, st2,
                  19 ,CO-NE ,0 ,40.003 ,102.051 ,08 ,31 ,
                  19 ,CO-NE ,68.95 ,41.002 ,102.051 ,08 ,31 ,
                  19 ,CO-NE ,173.19 ,41.001 ,104.053 ,08 ,31 ,
                  20 ,CO-NM ,0 ,36.999 ,109.044 ,08 ,35 ,
                  20 ,CO-NM ,333 ,37 ,103.001 ,08 ,35 ,
                  21 ,CO-OK ,0 ,37 ,103.001 ,08 ,40 ,
                  21 ,CO-OK ,52.89 ,36.993 ,102.041 ,08 ,40 ,
                  22 ,CO-UT ,0 ,41 ,109.049 ,08 ,49 ,
                  22 ,CO-UT ,276.11 ,36.999 ,109.044 ,08 ,49 ,
                  23 ,CO-WY ,0 ,41.001 ,104.053 ,08 ,56 ,
                  23 ,CO-WY ,260.18 ,41 ,109.049 ,08 ,56 ,
                  

                  更新:我将 states.xml 的精炼版本以及 Objective-C 代码放在 kjhsoftware/us-state-polygons github repo.

                  Update: I put an refined version of the states.xml, as well as Objective-C code on a kjhsoftware/us-state-polygons github repo.

                  这篇关于美国所有州的 iOS 覆盖(MKPolygon)数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Cordova Geolocation 插件在 Android 上返回空位置对象 下一篇:位置管理器不会删除位置更新!

                  相关文章

                  最新文章

                    <legend id='t9odc'><style id='t9odc'><dir id='t9odc'><q id='t9odc'></q></dir></style></legend>

                    <small id='t9odc'></small><noframes id='t9odc'>

                      • <bdo id='t9odc'></bdo><ul id='t9odc'></ul>

                      <tfoot id='t9odc'></tfoot>
                    1. <i id='t9odc'><tr id='t9odc'><dt id='t9odc'><q id='t9odc'><span id='t9odc'><b id='t9odc'><form id='t9odc'><ins id='t9odc'></ins><ul id='t9odc'></ul><sub id='t9odc'></sub></form><legend id='t9odc'></legend><bdo id='t9odc'><pre id='t9odc'><center id='t9odc'></center></pre></bdo></b><th id='t9odc'></th></span></q></dt></tr></i><div id='t9odc'><tfoot id='t9odc'></tfoot><dl id='t9odc'><fieldset id='t9odc'></fieldset></dl></div>