POST
|
I need to get some unique values, for example ; i have dynamic map and ıt has seven or more sublayers and i need get these sublayers's unique id or guid. i can get subslayers from dynamiclayer on android like this : ArcGISLayerInfo[] layers = c.getMap().getLayers(); for example : layers[0] -> This is my first sublayers but i need to get this layer guid orm unique value, not layers[0].getId(); it is not solve my problem.
... View more
02-02-2015
02:09 AM
|
0
|
0
|
3894
|
POST
|
I hava tiledmap and it's scale is 500.000 and when i tried to show on android or ios devices. It on mapview it brings me cached data of scale 300.000 but when i tried to show it on web page , it works correctly. Also i tried to show arcgis sample map , there is a same problem. Did you know something about it ?
... View more
01-23-2015
06:51 AM
|
0
|
0
|
2846
|
POST
|
so what can i do ? i droped 'SDE' before all tables with SRD.ST_GEOMETRY and SDE.ST_RASTER columns.ı search all table these coloums result is empty but i have some object like these columns
... View more
11-26-2014
11:45 PM
|
0
|
2
|
585
|
POST
|
Hi, I hava a problem, when we delete users, we get error. You can see my code and error whic is given oracle. Is there any solution about this problem? drop user sdedata cascade; ORA-00604: error occurred at recursive sql level 1 ORA-21700: object does not exist or is marked for delete oracle
... View more
11-26-2014
02:30 AM
|
0
|
5
|
3464
|
POST
|
I update my arcgis runtime android sdk 10.2.3 to 10.2.4 and i used to queryparameter with setmaxfeatures because only i show 5 features. But now it is not working so i write where clause "ROWNUM <= 5" it's working but why setmaxfeatures not working ? Message was edited by: Melita Kennedy - corrected title
... View more
10-24-2014
08:58 AM
|
0
|
0
|
2354
|
POST
|
Hi everyone, I wanna do query with where clauses but when result come, result's selected features must be inside visible mapview.I mean that think about mapview center point and draw a polygon around center point and when i execute query task , give me result inside this polygon. I hope that you understand what i wrote. Regard Görkem KARADOĞAN
... View more
10-15-2014
11:55 PM
|
0
|
1
|
2956
|
POST
|
ArcGISLayerInfo[] layers = c.getMap().getLayers(); // It gives me my tiledmap.
for (int i = 0; i < layers.length; i++) {
List<Legend> _legend = layers.getLegend();
Log.v("Legend :", _legend.get(0).getLabel());
} But this code is not working so i wrote codes for reading legends these codes. private class LegandBul extends
AsyncTask<String, Void, ArrayList<ArrayList<legendClass>>> {
String url;
// contacts JSONArray
ArrayList<legendClass> legendA;
ArrayList<ArrayList<legendClass>> layersA;
@Override
protected void onPreExecute() {
super.onPreExecute();
// Showing progress dialog
legendA = new ArrayList<legendClass>();
layersA = new ArrayList<ArrayList<legendClass>>();
}
@Override
protected ArrayList<ArrayList<legendClass>> doInBackground(
String... query) {
// Creating service handler class instance
url = query[0];
ServiceHandler sh = new ServiceHandler();
// String json = new
// GsonBuilder().create().toJson(anaEkraninstance.creds,
// UserCredentials.class);
// Making a request to url and getting response
String jsonStr = sh.makeServiceCall(url, ServiceHandler.GET);
if (jsonStr != null) {
try {
JSONObject jsonObj = new JSONObject(jsonStr);
// Getting JSON Array node
JSONArray layers = jsonObj.getJSONArray("layers");
// looping through All Contacts
for (int i = 0; i < layers.length(); i++) {
JSONObject c = layers.getJSONObject(i);
JSONArray legend = c.getJSONArray("legend");
for (int j = 0; j < legend.length(); j++) {
JSONObject legendic = legend.getJSONObject(j);
String label;
if (legendic.getString("label").isEmpty()) {
label = c.getString("layerName");
} else {
label = legendic.getString("label");
}
String imageData = legendic.getString("imageData");
legendClass newLegend = new legendClass(label,
StringToBitMap(imageData));
legendA.add(newLegend);
}
}
layersA.add(legendA);
return layersA;
} catch (JSONException e) {
e.printStackTrace();
}
} else {
Log.e("ServiceHandler", "Couldn't get any data from the url");
}
return null;
}
@Override
protected void onPostExecute(ArrayList<ArrayList<legendClass>> result) {
super.onPostExecute(result);
for (int i = 0; i < layersA.size(); i++) {
for (int j = 0; j < layersA.get(i).size(); j++) {
resultLegend.add(layersA.get(i).get(j));
}
}
legendAdapter.setItemList(resultLegend);
legendAdapter.notifyDataSetChanged();
/**
* Updating parsed JSON data into ListView
* */
}
} I can read legends with these codes. it run correctly and show me legends of tiledmap.But if my map has control for login, it needs to password or username like usercredentials so how can i implement this asynctask running with usercredentials. Also i don't want to learn that for only getting legends list. For example. When i edit feature layer and if attribute has a domain, esri android sdk sample codes not getting codedvalues so i wrote code for it and if attribute has a domain i get codedvalue with asynctask so again i must use asynctask with usercredentials. I hope you understand, my english is not good, i am sorry about that. If you have sample code about Async Task with UserCreditials, Can you share with me ?
... View more
08-26-2014
04:51 AM
|
0
|
2
|
1156
|
POST
|
but in thats examples asynctask will return feature set but i need to wait string for example i will get legend or coded value from secured arcgis service how i can i get that ? I have to use async task because getlegend() on layer is not run correctly and attribute add or show arcgis sdk examples not understand item has codedvalue.
... View more
08-20-2014
12:23 AM
|
0
|
4
|
1156
|
POST
|
My problem is that i want to get json data from Arcgis Server For example:http://xxxx.com/arcgis/rest/services/Map/MapServer/legend?f=pjson i can get and read json data from this url but if arcgis server has a password i couldn't so , must use UserCredentials but every sample example use UserCredentials for identity task or querytask but i read data from url. how can i post UserCredentials with my AsyncTask ?
... View more
08-18-2014
11:34 PM
|
0
|
6
|
4913
|
POST
|
hi everyone, i tried to get legends of DynamicLayer but i have error. Declaration Dynamic Layer : ArcGISDynamicMapServiceLayer binaKullanim = new ArcGISDynamicMapServiceLayer(this.getResources().getString(R.string.Tematik_Bina_Kullanim_Turu)); Add mapview: mMapView.addLayer(binaKullanim); Initialize layerinfo : ArcGISLayerInfo[] newLayerInfo = binaKullanim.getAllLayers(); try to read Log.v("gk", "gk"+newLayerInfo[0].getLegend().get(0).getLabel()); it gives me error nullpointerexeption but when i try read layername it gives me correct newLayerInfo[0].getName()
... View more
04-15-2014
05:44 AM
|
0
|
0
|
416
|
POST
|
hi everyone, i research about selecting feature or graphics for editing geometry and i found geometry editor sample but in this sample only you can add new feature after adding, you can not select and edit. Now i can draw point, polygon, polyline on graphiclayer but when i select one graphic, i could select and add existing graphiclayer but when i change editmode, i could not edit. Emergency i need to select feature or graphics for editing geometry. Are there any sample or code or ideas ? Also in ios sample it exists.
... View more
03-06-2014
06:18 AM
|
0
|
0
|
552
|
POST
|
hi everyone , i am using argcis runtime sdk for android and it supports wmslayer but there is no sample or code for selection feature with using wmslayer. Do you know how can i do that ?
... View more
11-26-2013
10:39 PM
|
0
|
0
|
731
|
POST
|
Hi everyone , i have wmslayer and i can show on the map that is my code : mMapView = (MapView)findViewById(R.id.map);
String wmsURL = "http://********:8080/geoserver/AAA/wms?service=WMS&version=1.1.0&request=GetMap";
TextView yazi = (TextView) findViewById(R.id.yazi);
wmsLayer = new WMSLayer(wmsURL);
mMapView .addLayer(wmsLayer); it shows me our maps. Now i work on about highlightfeatures examples. But this example is with rest server and they have index on layers. i implement my wmsserver url and change ArcGISTiledMapServiceLayer to WMSLayer and it show me map but when i press long into map, it couldnt get layers information. inputParameters.setLayers(new int[] { layerIndexes[selectedLayerIndex] }); i think this code is problem i have no index on my wmslayer. how could i fix it ? or do you have sample about wmslayer selection feature ?
... View more
11-26-2013
06:12 AM
|
0
|
0
|
1879
|
POST
|
// Retrieve the map and initial extent from XML layout
mMapView = (MapView)findViewById(R.id.map);
// Add dynamic layer to MapView
String wmsURL = "http://********:8080/geoserver/wms";
WMSLayer wmsLayer = new WMSLayer(wmsURL);
mMapView.addLayer(wmsLayer); i just want to see map with getting data from my wmsserver. but there are error like that 11-26 10:35:46.924: E/ArcGIS(11846): Can not parse MapView.initExtent from xml
11-26 10:35:46.924: E/ArcGIS(11846): java.text.ParseException: Unparseable number: "-1.3296373526814876E7" (at offset 21)
11-26 10:35:46.924: E/ArcGIS(11846): at java.text.NumberFormat.parse(NumberFormat.java:545)
11-26 10:35:46.924: E/ArcGIS(11846): at com.esri.android.map.MapView.a(Unknown Source)
11-26 10:35:46.924: E/ArcGIS(11846): at com.esri.android.map.MapView.a(Unknown Source)
11-26 10:35:46.924: E/ArcGIS(11846): at com.esri.android.map.MapView.<init>(Unknown Source)
11-26 10:35:46.924: E/ArcGIS(11846): at java.lang.reflect.Constructor.constructNative(Native Method)
11-26 10:35:46.924: E/ArcGIS(11846): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
11-26 10:35:46.924: E/ArcGIS(11846): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
11-26 10:35:46.924: E/ArcGIS(11846): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
11-26 10:35:46.924: E/ArcGIS(11846): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
11-26 10:35:46.924: E/ArcGIS(11846): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
11-26 10:35:46.924: E/ArcGIS(11846): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
11-26 10:35:46.924: E/ArcGIS(11846): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
11-26 10:35:46.924: E/ArcGIS(11846): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:308)
11-26 10:35:46.924: E/ArcGIS(11846): at android.app.Activity.setContentView(Activity.java:1924)
11-26 10:35:46.924: E/ArcGIS(11846): at com.bisar.esrikaskimap.EsrikaskimapActivity.onCreate(EsrikaskimapActivity.java:18)
11-26 10:35:46.924: E/ArcGIS(11846): at android.app.Activity.performCreate(Activity.java:5206)
11-26 10:35:46.924: E/ArcGIS(11846): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1083)
11-26 10:35:46.924: E/ArcGIS(11846): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2064)
11-26 10:35:46.924: E/ArcGIS(11846): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2125)
11-26 10:35:46.924: E/ArcGIS(11846): at android.app.ActivityThread.access$600(ActivityThread.java:140)
11-26 10:35:46.924: E/ArcGIS(11846): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227)
11-26 10:35:46.924: E/ArcGIS(11846): at android.os.Handler.dispatchMessage(Handler.java:99)
11-26 10:35:46.924: E/ArcGIS(11846): at android.os.Looper.loop(Looper.java:137)
11-26 10:35:46.924: E/ArcGIS(11846): at android.app.ActivityThread.main(ActivityThread.java:4898)
11-26 10:35:46.924: E/ArcGIS(11846): at java.lang.reflect.Method.invokeNative(Native Method)
11-26 10:35:46.924: E/ArcGIS(11846): at java.lang.reflect.Method.invoke(Method.java:511)
11-26 10:35:46.924: E/ArcGIS(11846): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
11-26 10:35:46.924: E/ArcGIS(11846): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
11-26 10:35:46.924: E/ArcGIS(11846): at dalvik.system.NativeStart.main(Native Method) What are these error ? i dont understand. initExtent = "-1.3296373526814876E7 3930962.41823043 -1.2807176545789773E7 4201243.7502468005"> when i delete this line form xml, now there is no error but map show notting
... View more
11-25-2013
10:39 PM
|
0
|
0
|
305
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|