esri

How can I extract the address information from a Compressed ESRI shapefile datasource?

有些话、适合烂在心里 提交于 2020-01-03 01:22:15
问题 When I download the zip file from the website it contains files with the following extensions: .dbf .prj .sbn .sbx .shp .shp.xml .shx Is this is a common data file format that I download or purchase a converter? I think this is some kind of mapping data file but I all need are the addresses it contains to push into our existing database. Specifically and related to programming. How can I setup a .NET Datasource to this group of files or just the .dbf file that actually contains the

Adding custom Feature attributes to ESRI Shapefile with Python

孤街醉人 提交于 2020-01-01 05:16:11
问题 I am seeking a way to take an existing ESRI Shapefile that has a Feature set of 200 countries. Each country Feature has an attribute of "NAME." My objective is to create a Python script that adds an arbitrary (for now) additional attribute, say, "POPULATION". Of course I have the OSGeo and GeoDjango modules installed. I'm as far as: from osgeo import ogr infile = ogr.Open('sample.shp', 1) #'sample.shp' is a pre-existing ESRI shapefile described above inlyr = infile.GetLayerByIndex(0) Am I

Android - Expected Resource of type ID

时光毁灭记忆、已成空白 提交于 2019-12-29 12:11:08
问题 I have this code final static int TITLE_ID = 1; final static int REVIEW_ID = 2; Now, I want to create a new layout in my main class public View createContent() { // create linear layout for the entire view LinearLayout layout = new LinearLayout(this); layout.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT)); layout.setOrientation(LinearLayout.VERTICAL); // create TextView for the title TextView titleView = new TextView(this);

ESRI : Failed to parse source map

人盡茶涼 提交于 2019-12-28 08:11:53
问题 I am getting this error in the Google chrome developer console. Failed to parse SourceMap: http://localhost:15132/Scripts/_External/igniteui/css/themes/infragistics/infragistics.theme.css.map How do I fix it? 回答1: Chrome recently added support for source maps in the developer tools. If you go under settings on the chrome developer toolbar you can see the following two options: If you disable those two options, and refresh the browser, it should no longer ask for source maps. 回答2: Further to

arcgis api for silverlight使用google map等多个在线地图

感情迁移 提交于 2019-12-28 04:58:56
原文 http://blog.csdn.net/leesmn/article/details/6820245 无可否认,google map实在是很漂亮。可惜对于使用arcgis api for silverlight的我们来说,无法使用它的确不爽。虽然,arcgis api for silverlight可以使用bing map。但是bing map中国地区的地图很差,城市道路信息几乎没有。稍微得到些许安慰的是最新版本(比方2.2版本)可以支持OpenStreetMap,效果比bing map 好多了。 使用OpenStreetMap xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client" xmlns:open="clr-namespace:ESRI.ArcGIS.Client.Toolkit.DataSources;assembly=ESRI.ArcGIS.Client.Toolkit.DataSources" <esri:Map x:Name="MyMap"> <esri:Map.Layers> <open:OpenStreetMapLayer ID="MyLayer"></open:OpenStreetMapLayer> </esri:Map.Layers> </esri:Map>

ArcGIS API for Silverlight 入门学习笔记(一):hello world

时光毁灭记忆、已成空白 提交于 2019-12-28 04:58:36
本人也是刚刚开始学习silverlight和arcgis server,所以很多问题还不太懂,希望通过博文来和大家交流 现在开始ArcGIS API for Silverlight的hello world 之旅 新建一个Silverlight项目,在MainPage.xaml文件中,引入 ESRI.ArcGIS.Client 命名空间和 ESRI.ArcGIS.Client 所在的程序集 ESRI.ArcGIS.Client,并指定 该命名空间的名字为ESRI(这个名字是自定义的,也可以是阿毛阿狗) 注:引入方法,在silverlight项目上(不是Web)点击右键——添加引用——浏览——ESRI.ArcGIS.Client.dll——确定 ESRI.ArcGIS.Client.dll的路径X:\Program Files\ESRI SDKs\Silverlight\v1.2 接着写Map控件,并指定Map中的地图服务,一个简单的服务地图完成了,代码如下: 代码 < UserControl x:Class ="APIforSilverlightSamp.s1" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx

ArcGIS API for Silverlight 学习笔记(2)

孤者浪人 提交于 2019-12-28 04:57:39
这里主要讲解展示不同的服务地图 先看一个实例:   新建一个Silverlight项目,在MainPage.xaml文件中,引入 ESRI.ArcGIS.Client 命名空间和 ESRI.ArcGIS.Client 所在的程序集 ESRI.ArcGIS.Client,并指定 该命名空间的名字为 esri,当然你也可以用自己的别名,比如myGIS。   接着写Map控件,并指定Map中的地图服务,一个简单的服务地图完成了,代码如下: 代码 < UserControl x:Class ="ArcGISTiledLayer.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:esri ="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client" > < Grid x:Name ="LayoutRoot" > < esri:Map x:Name ="MyMap" > < esri:ArcGISTiledMapServiceLayer ID ="MyLayer" Url ="http://server

Calculate WMTS layer map extent with GeometryService

有些话、适合烂在心里 提交于 2019-12-25 08:50:07
问题 I have WMTS background layer, a WMS Layer and an array of points in a graphic layer. The points have wgs84latlng coordinates that are used to calculate the extent of the map. NOT WORKING: When calculating the extent with a GeometryService the the wms layer is nicely projected on top of it only it's position is shifted upwards and not corresponding with the GeometryService calculated position of the points in the GraphicsLayer... service: <esri:GeometryService id="geometryService" concurrency=

Leaflet JS + Leaflet.Deflate - Changing default marker icon to custom icon

时间秒杀一切 提交于 2019-12-25 08:36:21
问题 In my previous post 'Leaflet JS - changing esri shape into marker on certain zoom level ' I was able to resolve an issue which i had with the leaflet JS library and changing the polygon shapes to markers icons when hitting a certain zoom level. I was advised by 'Ivan Sanchez' to use the 'Leaflet.Deflate' plugin and this works like a charm, so now the various shapes are being transformed into markers after a certain zoomlevel, however now I'm struggling to change the default leaflet marker

ArcGIS API - Execute QueryTask unsupported

拟墨画扇 提交于 2019-12-25 03:52:39
问题 So, I am using the ArcGIS API (javascript) in order to get some information from objects in a featurelayer. The first step here should be detecting which object the user clicked. I am using queries for this. For some reason though, I cannot seem to execute my queries. Every time the execute method is called, the console replies that "Object doesn't support property or method 'execute'". The relevant part of the code is as follows: thema_4_Verblijf = new FeatureLayer("https://services