POST
|
Dear Raymond I can not show you the site but I copy the info of my map server ArcGIS Services Directory Home > Clermont_TEST (MapServer) Help | API Reference Clermont_TEST (MapServer) View In: ArcMap ArcGIS Explorer ArcGIS JavaScript ArcGIS.com Map Google Earth View Footprint In: Google Earth Service Description: Map Name: Couches Legend All Layers and Tables Layers: SIG.COVAGE.RESCOV_SITES (0) SIG.COVAGE.RESCOV_CABLES (1) SIG.COVAGE.RESCOV_PT_TECH (2) SIG.COVAGE.RESCOV_SUPPORT (3) Description: Copyright Text: Spatial Reference: PROJCS["RGF_1993_Lambert_93",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",700000.0],PARAMETER["False_Northing",6600000.0],PARAMETER["Central_Meridian",3.0],PARAMETER["Standard_Parallel_1",44.0],PARAMETER["Standard_Parallel_2",49.0],PARAMETER["Latitude_Of_Origin",46.5],UNIT["Meter",1.0]] Single Fused Map Cache: false Initial Extent: XMin: 684972.8280251798 YMin: 6510896.448649341 XMax: 735224.7604746498 YMax: 6528690.575549481 Spatial Reference: PROJCS["RGF_1993_Lambert_93",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",700000.0],PARAMETER["False_Northing",6600000.0],PARAMETER["Central_Meridian",3.0],PARAMETER["Standard_Parallel_1",44.0],PARAMETER["Standard_Parallel_2",49.0],PARAMETER["Latitude_Of_Origin",46.5],UNIT["Meter",1.0]] Full Extent: XMin: 700903.4631999952 YMin: 6511705.272599347 XMax: 719294.1252998349 YMax: 6527881.751599476 Spatial Reference: PROJCS["RGF_1993_Lambert_93",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",700000.0],PARAMETER["False_Northing",6600000.0],PARAMETER["Central_Meridian",3.0],PARAMETER["Standard_Parallel_1",44.0],PARAMETER["Standard_Parallel_2",49.0],PARAMETER["Latitude_Of_Origin",46.5],UNIT["Meter",1.0]] Units: esriMeters Supported Image Format Types: PNG32,PNG24,PNG,JPG,DIB,TIFF,EMF,PS,PDF,GIF,SVG,SVGZ,BMP Document Info: Title: Author: Comments: Subject: Category: Keywords: AntialiasingMode: Fastest TextAntialiasingMode: Normal Supported Interfaces: REST SOAP WFS Supported Operations: Export Map Identify Find And the first sublayer of mapserver Layer: SIG.COVAGE.RESCOV_SITES (ID:0) Display Field: NOM Type: Feature Layer Geometry Type: esriGeometryPoint Description: Definition Expression: RESEAU = 'CC' Copyright Text: Min. Scale: 0.0 Max. Scale: 0.0 Default Visibility: true Extent: XMin: 335847.84710250073 YMin: 6196674.762395348 XMax: 1227493.0724970268 YMax: 7108515.558903408 Spatial Reference: PROJCS["RGF_1993_Lambert_93",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",700000.0],PARAMETER["False_Northing",6600000.0],PARAMETER["Central_Meridian",3.0],PARAMETER["Standard_Parallel_1",44.0],PARAMETER["Standard_Parallel_2",49.0],PARAMETER["Latitude_Of_Origin",46.5],UNIT["Meter",1.0]] Drawing Info: Renderer: Simple Renderer: Symbol: Picture Marker Symbol: Label: Description: Transparency: 0 Labeling Info: Label Placement: esriServerPointLabelPlacementAboveRight Label Expression: [NOM] Use Coded Values: true Symbol: Simple Text Symbol: Color: [0, 0, 0, 255] Background Color: N/A Outline Color: N/A Vertical Alignment: bottom Horizontal Alignment: center Right to Left: false Angle: 0.0 XOffset: 0.0 YOffset: 0.0 Size: 8.0 Font Family: Arial Font Style: normal Font Weight: normal Font Decoration: none Min. Scale: 5000.0 Max. Scale: 0.0 Has Attachments: false HTML Popup Type: esriServerHTMLPopupTypeAsHTMLText Type ID Field: N/A Fields: OBJECTID ( Type: esriFieldTypeOID, Alias: OBJECTID ) NOM ( Type: esriFieldTypeString, Alias: NOM , Length: 20 ) ETAT ( Type: esriFieldTypeString, Alias: ETAT , Length: 20 ) DATEMODIFICATION ( Type: esriFieldTypeString, Alias: DATEMODIFICATION , Length: 20 ) CODE ( Type: esriFieldTypeString, Alias: CODE , Length: 20 ) DATE ( Type: esriFieldTypeString, Alias: DATE , Length: 20 ) RESEAU ( Type: esriFieldTypeString, Alias: RESEAU , Length: 20 ) IDCONTENEUR ( Type: esriFieldTypeString, Alias: IDCONTENEUR , Length: 20 ) TYPESTRUCTUREL ( Type: esriFieldTypeString, Alias: TYPESTRUCTUREL , Length: 20 ) EMPRISE ( Type: esriFieldTypeString, Alias: EMPRISE , Length: 20 ) DSP ( Type: esriFieldTypeString, Alias: DSP , Length: 20 ) GESTIONNAIRE ( Type: esriFieldTypeString, Alias: GESTIONNAIRE , Length: 20 ) PROPRIETAIRE ( Type: esriFieldTypeString, Alias: PROPRIETAIRE , Length: 20 ) IDADRESSE ( Type: esriFieldTypeString, Alias: IDADRESSE , Length: 20 ) ID ( Type: esriFieldTypeString, Alias: ID , Length: 20 ) CREATEUR ( Type: esriFieldTypeString, Alias: CREATEUR , Length: 20 ) TYPEFONCTIONNEL ( Type: esriFieldTypeString, Alias: TYPEFONCTIONNEL , Length: 20 ) DATECREATION ( Type: esriFieldTypeString, Alias: DATECREATION , Length: 20 ) MODIFICATEUR ( Type: esriFieldTypeString, Alias: MODIFICATEUR , Length: 20 ) SHAPE ( Type: esriFieldTypeGeometry, Alias: SHAPE ) Supported Interfaces: REST Supported Operations: Query I used the dynamicMapServiceLayer to display but it doesn't work ArcGISDynamicMapServiceLayer mapLayer = new ArcGISDynamicMapServiceLayer( "http://10.192.1.44:8399/arcgis/rest/services/Clermont_TEST/MapServer"); mMapView.addLayer(mapLayer);
... View more
07-02-2014
05:21 AM
|
0
|
0
|
726
|
POST
|
Hi Zijian, Yes, you can use Feature Service to support editing functionalities while using the Map Service to display the label as per my previous suggestion from Method 1, that is, author the map with proper labelling. Whenever a geometry's attribute is added/updated through the Feature Service, the Map Server will be able to render new map images with the updated information. For this to happen, you cannot use a TileMapServiceLayer which lets you to work with a cached map service resource exposed by the ArcGIS Server REST API. A cached service accesses tiles from a cache instead of dynamically rendering images. For dynamic map services, see https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/DynamicLayer.html. Let me know if I understood you correctly. Cheers, Raymond Hi Raymond, Your suggestion is really helpful, now I want to use ArcGISDynamicMapServiceLayer to display the label info, but the problem is how I can only display the label info without the symbols. This is my code. This is the map service
DynamicLayer li = new ArcGISDynamicMapServiceLayer(this.getResources()
.getString(R.string.feature_url));
mMapView.addLayer(li); Clermont_TEST (MapServer)
View In: ArcMap ArcGIS Explorer ArcGIS JavaScript ArcGIS.com Map Google Earth
View Footprint In: Google Earth
Service Description:
Map Name: Couches
Legend
All Layers and Tables
Layers:
SIG.COVAGE.RESCOV_SITES (0)
SIG.COVAGE.RESCOV_CABLES (1)
SIG.COVAGE.RESCOV_PT_TECH (2)
SIG.COVAGE.RESCOV_SUPPORT (3)
Description:
Copyright Text:
This is the first sublayer Layer: SIG.COVAGE.RESCOV_SITES (ID:0)
Display Field: NOM
Type: Feature Layer
Geometry Type: esriGeometryPoint
Description:
Definition Expression: RESEAU = 'CC'
Copyright Text:
Min. Scale: 0.0
Max. Scale: 0.0
Default Visibility: true
Extent:
XMin: 335847.84710250073
YMin: 6196674.762395348
XMax: 1227493.0724970268
YMax: 7108515.558903408
Spatial Reference: PROJCS["RGF_1993_Lambert_93",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",700000.0],PARAMETER["False_Northing",6600000.0],PARAMETER["Central_Meridian",3.0],PARAMETER["Standard_Parallel_1",44.0],PARAMETER["Standard_Parallel_2",49.0],PARAMETER["Latitude_Of_Origin",46.5],UNIT["Meter",1.0]]
Drawing Info:
Renderer:
Simple Renderer:
Symbol:
Picture Marker Symbol:
Label:
Description:
Transparency: 0
Labeling Info:
Label Placement: esriServerPointLabelPlacementAboveRight
Label Expression: [NOM]
Use Coded Values: true
Symbol:
Simple Text Symbol:
Color: [0, 0, 0, 255]
Background Color: N/A
Outline Color: N/A
Vertical Alignment: bottom
Horizontal Alignment: center
Right to Left: false
Angle: 0.0
XOffset: 0.0
YOffset: 0.0
Size: 8.0
Font Family: Arial
Font Style: normal
Font Weight: normal
Font Decoration: none
Min. Scale: 5000.0
Max. Scale: 0.0
I can display neither symbol nor label info. That is really strange. When I use the featureLayer, I can at least display symbols. Thanks for your help. Cheers Zijian
... View more
05-20-2014
04:45 AM
|
0
|
0
|
726
|
POST
|
Hi Zijian, Generally speaking, there are two methods to this: If you want the map service to automatically show labels, you need to set up labels in your data in ArcMap before you publish it as a map service. Labels are only supported on map services. For details on making a map with labels in ArcMap, see http://resources.arcgis.com/en/help/main/10.2/index.html#/Essential_labeling_concepts/00s80000000t000000/. However, if you wish to pull in attribute information from the feature service to setup and draw the label in android, check out this: https://developers.arcgis.com/android/api-reference/reference/com/esri/core/map/LabelingInfo.html Hope it helps point your project in the right direction. Cheers, Raymond As there is a huge number of geomotrys, I think the second one is not so good. But if I use the first one, I can not edit the attribut of the geometry. So if I can use the featureLayer(featureService) to display the plan and mapsercive to display the label info, the problem will be solved. But how to only display the label info? I have the mapservice, how can I use it, the ArcGISTiledMapServiceLayer doesn't work, neither featureLayer, is there any other way? Thanks for your helping
... View more
05-20-2014
02:08 AM
|
0
|
0
|
726
|
POST
|
Hello, I am currently doing an Android project which shows the plan of networks. I have an online mapservice and feature service which contains the label infomation. But neither of them can display the label information in the map. Could someone tell me how to do it?
... View more
05-20-2014
12:14 AM
|
0
|
7
|
8035
|
POST
|
According to the articles on the Internet, it is not possible to display the labeling info with a feature service. Howerver, il does not work with ArcGISDynamicMapServiceLayer too. Is there anyone who knows the API in Android to display them.
... View more
05-07-2014
04:08 AM
|
0
|
0
|
179
|
POST
|
Hello, I create a feature layer with feature service, the service contain the label information, but I do not know how to display the label info in the map. Could someone help me, thanks
... View more
05-07-2014
02:06 AM
|
0
|
2
|
3179
|
POST
|
I have feature layer created by feature service, the service contain the laber info, but I do not know how to display the label info in the map. Here is the code of the feature layer. Drawing Info: Renderer: Simple Renderer: Symbol: Picture Marker Symbol: Label: Description: Transparency: 0 Labeling Info: Label Placement: esriServerPointLabelPlacementAboveRight Label Expression: [NOM] Use Coded Values: true Symbol: Simple Text Symbol: Color: [0, 0, 0, 255] Background Color: N/A Outline Color: N/A Vertical Alignment: bottom Horizontal Alignment: center Right to Left: false Angle: 0.0 XOffset: 0.0 YOffset: 0.0 Size: 8.0 Font Family: Arial Font Style: normal Font Weight: normal Font Decoration: none Min. Scale: 5000.0 Max. Scale: 0.0 Has Attachments: false HTML Popup Type: esriServerHTMLPopupTypeAsHTMLText Object ID Field: OBJECTID Global ID Field: Type ID Field: Fields: OBJECTID ( Type: esriFieldTypeOID, Alias: OBJECTID, Editable: false ) I wonder how to display this information without adding an other layer, because I ve seen a similar question, and the answer is that using the feature layer to show the geometry and using the mapservice(some other layer)to show the label info. I wonder if there are any ways to use a single layer to show them in the same time. Zijian
... View more
05-05-2014
08:00 AM
|
0
|
0
|
2110
|
POST
|
you have to set the parameter layers through an Array. You have to specify which layer/layers of the map service you are accessing so change or alter this line "params.setLayers(new int[]{0});" in the curly braces change specify the layer/layer the tool has to access. for ed params.setLayers(new int[]{0,1,2,3}); Hello, I m currently using the new ArcSDK 10.2.3. The problem is that I can not change the layer to identify. Whaterver I put, it will do the identify tasks in all the layers. Does the function setLayer function not any more?
... View more
04-23-2014
01:18 AM
|
0
|
0
|
356
|
POST
|
This sample demonstrates the services pattern for generating a runtime geodatabase from a feature service. Yes, but the server 10.0 do not have the "synchronize replica " option and "Create Replica " option. I have tried but failed, can not generate local geodatabase. Zijian
... View more
04-22-2014
08:08 AM
|
0
|
0
|
280
|
POST
|
When you are working with this sample there 3 changes necessary to make in order to make it work when you embed it in your application. 1. Change the URLS = Which you have already done. 2. you have to set the parameter layers through an Array. You have to specify which layer/layers of the map service you are accessing so change or alter this line "params.setLayers(new int[]{0});" in the curly braces change specify the layer/layer the tool has to access. for ed params.setLayers(new int[]{0,1,2,3}); 3. after accessing the layer you have to tell the tool on what bases or record it has to pull out. Usually it has to be a primary key like record_id or a object id so chanege the field name in the following code according to a primary key in your mapservice. in my case : if(curResult.getAttributes().containsKey("RECORDID")){ outputVal = curResult.getAttributes().get("RECORDID").toString(); With these three things done your code and tool should work fine. do reply as whether this worked. Regards, Nigel. Hello, I m currently using the new ArcSDK 10.2.3. The problem is that I can not change the layer to identify. Whaterver I put, it will do the identify tasks in all the layers. Does the function setLayer function not any more?
... View more
04-22-2014
07:16 AM
|
0
|
0
|
302
|
POST
|
Hi Zijian and Lisandro, In your examples, are you using file geodatabases? GDB_Test.gdb (Zijian) RH_SampleData.gdb (Lisandro). When using a geodatabase locally on an Android device you need to use a runtime geodatabase. For a quick test or example, You could create runtime content using ArcMap. On ArcMap's File menu, point to Share as, and click Runtime content. There is a bit more to it than just clicking a menu choice. You can read more about the workflows here: http://resources.arcgis.com/en/help/main/10.2/index.html#//00660000045q000000 ArcMap creates a .geodatabase file, that you can place on the Android device. For example, using a file browser I copied the output city.geodatabase onto my phone's sd card. Then in Eclipse using the DDMS perspective you can see the file on the device and learn the folder names for the sd card. In code I make a variable to reference that location: String gdbPath = "/storage/extSdCard/ArcGISApp/city.geodatabase"; //In a try...catch I create a Geodatabase object and use the path. Geodatabase geodatabase = new Geodatabase(gdbPath); //From there you can get FeatureTables by their index position. This line gets the first table using 0 as the index. GeodatabaseFeatureTable geodatabaseFeatureTable = geodatabase.getGeodatabaseFeatureTableByLayerId(0); //You can then use the table to create a feature layer and add the layer to the map. FeatureLayer featureLayer = new FeatureLayer(geodatabaseFeatureTable); mMapView.addLayer(featureLayer); Please check out this page for more details on the patterns of working with offline data: https://developers.arcgis.com/android/guide/create-an-offline-map.htm Please let me know if this helps. Thanks, that is the reason. Our company are currently using ArcGIS serveur 10.0 and I do not know if we can update to 10.2 for free or not. In fact our clients are using the server 10.0 and I do not know if the update will block the clients. If it blocks the clients, I do not think our manager will do it for this Android Project, so that we can not use the offline edit and synchonization of geodatabase. Is there any solution to use these functions without update the ArcGIS server? Sincerely ZHU Zijian
... View more
04-22-2014
07:07 AM
|
0
|
0
|
857
|
POST
|
Hi When I look at the rest endpoint for the Wildfire feature service: http://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Wildfire/FeatureServer And scroll all the way to the bottom, I can see the Sync and Replica Operations are available: Supported Operations: Query Apply Edits Create Replica Synchronize Replica Unregister Replica The other feature services you mention only show Query and Apply Edits. Supported Operations: Query Apply Edits Please have a look at this Guide topic Create and Offline map: https://developers.arcgis.com/android/guide/create-an-offline-map.htm One of its topics describes 'a sync-enabled feature service' and creating one. Please let me know if this helps get you any closer to solving the issue. Yes, I solved the problem, thank you 😉
... View more
04-17-2014
07:04 AM
|
0
|
0
|
162
|
POST
|
Hi, I am currently doing a project with ArcGIS for Android in a french company. I want to use the online map service, offline maps and online geocoding service. However I do not know if these services are free for users or should our company pay for the license. Can we also use the Googlemap service or bingMap sercive instead of ArcGIS service? (include geocoding service), are they free? Thanks for helping me!
... View more
04-16-2014
12:28 AM
|
0
|
1
|
709
|
POST
|
Hello, I have the similar problem. I import the "IdentifyTask" example from the site of tutorial, it works well. But when I implamnt the task part to my own code, it does not work any more. The problem is that when I click the popwindow to specify the list, the application ternimate exceptionally. 04-11 11:23:23.606: E/AndroidRuntime(3811): FATAL EXCEPTION: main 04-11 11:23:23.606: E/AndroidRuntime(3811): Process: com.example.testsig, PID: 3811 04-11 11:23:23.606: E/AndroidRuntime(3811): android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@4239b6e0 is not valid; is your activity running? 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.view.ViewRootImpl.setView(ViewRootImpl.java:536) 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:259) 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69) 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.widget.PopupWindow.invokePopup(PopupWindow.java:1019) 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.widget.PopupWindow.showAsDropDown(PopupWindow.java:925) 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.widget.ListPopupWindow.show(ListPopupWindow.java:625) 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.widget.Spinner$DropdownPopup.show(Spinner.java:1110) 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.widget.Spinner.performClick(Spinner.java:658) 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.view.View$PerformClick.run(View.java:18422) 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.os.Handler.handleCallback(Handler.java:733) 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.os.Handler.dispatchMessage(Handler.java:95) 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.os.Looper.loop(Looper.java:136) 04-11 11:23:23.606: E/AndroidRuntime(3811): at android.app.ActivityThread.main(ActivityThread.java:5017) 04-11 11:23:23.606: E/AndroidRuntime(3811): at java.lang.reflect.Method.invokeNative(Native Method) 04-11 11:23:23.606: E/AndroidRuntime(3811): at java.lang.reflect.Method.invoke(Method.java:515) 04-11 11:23:23.606: E/AndroidRuntime(3811): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 04-11 11:23:23.606: E/AndroidRuntime(3811): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 04-11 11:23:23.606: E/AndroidRuntime(3811): at dalvik.system.NativeStart.main(Native Method)
... View more
04-11-2014
01:24 AM
|
0
|
0
|
324
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|