POST
|
I have a custom .net web service that returns ESRI's json format. I am having trouble getting the results to map. Here is a sample of the json: {"geometryType":"esriGeometryPolyline", "spatialReference":{"wkid":4326}, "fields":[ {"name":"OID","type":"esriFieldTypeInteger","alias":"OID"}, {"name":"OBJECTID","type":"esriFieldTypeBigInteger","alias":"OBJECTID"}, {"name":"Id","type":"esriFieldTypeUnknown","alias":"Id"}, {"name":"GNIS_Name","type":"esriFieldTypeString","alias":"GNIS_Name"}, {"name":"Hydro_ID","type":"esriFieldTypeUnknown","alias":"Hydro_ID"}, {"name":"Name","type":"esriFieldTypeString","alias":"Name"}, {"name":"Feature","type":"esriFieldTypeString","alias":"Feature"}, {"name":"F_Code","type":"esriFieldTypeBigInteger","alias":"F_Code"}, {"name":"State","type":"esriFieldTypeString","alias":"State"}, {"name":"State_FIPS","type":"esriFieldTypeString","alias":"State_FIPS"}, {"name":"Region","type":"esriFieldTypeBigInteger","alias":"Region"}, {"name":"NHD_RCode","type":"esriFieldTypeString","alias":"NHD_RCode"}, {"name":"NHD_ComID","type":"esriFieldTypeUnknown","alias":"NHD_ComID"}, {"name":"GNIS_ID","type":"esriFieldTypeString","alias":"GNIS_ID"}, {"name":"From_Node","type":"esriFieldTypeUnknown","alias":"From_Node"}, {"name":"To_Node","type":"esriFieldTypeUnknown","alias":"To_Node"}, {"name":"Length_mi","type":"esriFieldTypeUnknown","alias":"Length_mi"}, {"name":"Enabled","type":"esriFieldTypeBigInteger","alias":"Enabled"}, {"name":"GM_f_code","type":"esriFieldTypeString","alias":"GM_f_code"}, {"name":"GM_hyc","type":"esriFieldTypeBigInteger","alias":"GM_hyc"}, {"name":"GM_lit","type":"esriFieldTypeBigInteger","alias":"GM_lit"}, {"name":"GM_nam","type":"esriFieldTypeString","alias":"GM_nam"}, {"name":"GM_soc","type":"esriFieldTypeString","alias":"GM_soc"}, {"name":"GM_exs","type":"esriFieldTypeBigInteger","alias":"GM_exs"}, {"name":"Shape_Leng","type":"esriFieldTypeUnknown","alias":"Shape_Leng"}], "features":[ {"attributes":{"OID":1,"OBJECTID":2,"Id":0,"GNIS_Name":"Clarks River","Hydro_ID":6008640,"Name":"Clarks River","Feature":"Stream","F_Code":4,"State":"KY","State_FIPS":"21","Region":6,"NHD_RCode":"06040006000075","NHD_ComID":1863538,"GNIS_ID":"00489552","From_Node":0,"To_Node":1,"Length_mi":0.1423984,"Enabled":1,"GM_f_code":"BH140","GM_hyc":9,"GM_lit":9,"GM_nam":"Clarks River","GM_soc":"USA","GM_exs":1,"Shape_Leng":0.002271788}, "geometry":{"paths":[[[-88.2817643199999,36.7790401180001],[-88.2834317879999,36.7805830280001]]]}}]} Ive tried this: featureSet = com.esri.ags.FeatureSet.fromJSON(event.toString()); but get this error JSONParseError: Unexpected R encountered at com.esri.serialization.json::JSONTokenizer/parseError() ANY help would be appreciated!!
... View more
05-31-2012
10:48 AM
|
0
|
2
|
2730
|
POST
|
After installing ArcGIS Server SDS 10.1 I tried creating a datasource by using http://<server>/arcgissds/admin/datasources/createDatasource and filled in the fields with the appropriate data and get an error message: { "error" : { "code" : 400, "message" : "", "details" : [ "Unable to connect to datasource." ] } } Connecting to a different server with SQL Server 2008 r2. ANY help would be MUCH appreciated!! David R. Maltby II IT Specialist U.S. Geological Survey
... View more
04-25-2012
01:26 PM
|
0
|
6
|
843
|
POST
|
Can anyone please guide me on converting MGRS to lat/long or UTM. Any help is greatly appreciated. Rahul There is a library called FlexProjections.swc. I don't remember where I got it but it handles the UTM/MGRS projections.
... View more
10-06-2011
06:43 AM
|
0
|
0
|
269
|
POST
|
you are missing a ; after map.graphics.clear() change to map.graphics.clear();
... View more
01-28-2011
05:51 AM
|
0
|
0
|
275
|
POST
|
I have a pretty complex web map that incorporates graphic points as well as multiple layers into a map: http://txpub.usgs.gov/watershedreview When I identify layers it works great the first time (this is a double-click) when I identify a notes graphic it works fine; when I then go back to identify layers, it shows the graphic text. I am completely stumped! It is probably the order of which javascript vars are loaded or executed. Thanks in advance!!
... View more
01-26-2011
06:14 AM
|
0
|
0
|
506
|
POST
|
I cannot answer the question, because I don't know the concepts of HTML 5 so well. What do you have in mind? What will be the changes that affects your code? What are the new features of HTML 5 that you can use? Canvas? SVG? Audio/Video? Sections? Geolocation? The other question: ArcIMS -> ADF -> APIs is a historical thing and has a lot to do with the technical evolution in the last couple of years. The standard client was framebased HTML, but there was no need to use that. You could have used any JS-API or any Flex impelementation with the ArcIMS backend. You needed the scheme/DTD of the ArcXML and a parser. There were also some JSF clients around for accessing ArcIMS services. So the technology and viewer that were used were mostly and simply the provided sample. It was fast to adjust, easy to use. But it was grey colored and commuicated over the frameset. There was no AJAX in these days and most people didn't want to have a JSF/ASP framework. The ADF is a great idea of using and modularize client features for the SOAP backend. You have a good control over your code and functions. But you have to learn ASPX and C#/VB.NET (JSF/Java) and to know about the communication with the used AJAX frameworks. It's a complicated thing and nice for programmers. But it is too much for a standard gis-user without so much programming knowledge. The APIs went another way: They encapsulate the REST statements in their client-frameworks nearly the same way. You can choose which one you like (or even write an own, you only need to follow the REST implementation). The advantage here is that the user can do it without so much knowledge of programming than in the ADF. The communication is part of the framework (JS-API with DOJO over Ajax, Flex and Silverlight in themselves). The REST interface is easier to understand than the SOAP endpoints. It's simply human-readable (although "SOAP is more polite than REST"). The JavaScript API itself can be integrated in some larger environment like .NET or Java. I think, these changes were driven by the common technlogy of webbrowsers, frameworks and infrastructure. AJAX - for example - makes only sense in environments with a good network. Image blending is only useful when the webbrowser supports transparency algorithms. Floating Panels or adjustable panels were coming with the emerge of JavaScript functionality in the webbrowsers and with the ideas of webdesigners to use them for a better user-experience. The plugin-based frameworks are only useful with a widespread plugin-framework. It has nothing to do with HTML. What you are worrying about is how the blessing that W3C gives to HTML 5 will change the internet-world and your code. My guess is: not the HTML standard will give you the need to change your code but a new internet-technlogy that will arise in some years: a well-structured, process-related, interdisciplinary, user-friendly meta-language. 🙂 You won't see much of a change. Basically, HTML5 provides for much richer development. You will still need Dojo and the other APIs. You probably want to wait to migrate because IE does not support HTML5 yet. IBM has great tutorials on-line.
... View more
01-25-2011
08:02 AM
|
0
|
0
|
276
|
POST
|
I answered my own question. Move the map.infoWindow.setContent(dijit.byId("tabs").domNode); and map.infoWindow.setTitle("Identify Results"); from your start functions into your identify function.
... View more
09-27-2010
12:38 PM
|
0
|
0
|
194
|
POST
|
Please post some code. That sounds like a logic error, and might be in your event handling. Loren Code is too large to post. Right-mouse click to view source code.
... View more
09-24-2010
08:37 AM
|
0
|
0
|
194
|
POST
|
I have a web map http://txpub.usgs.gov/watershedreview/watershedreview.html where I put graphics on the map and I just incorporated an identlfy task. I am having an issue where clicking on a graphic gives me the graphic attributes but when I do an identify (dblClick) I get the attributes from the last graphic that was clicked. I am doing a map.graphics.clear(); If I identify first, I get the attributes from my features. When I then click on a graphic, I get the attributes from the graphic. If I go back to identify, I get the attributes from the last graphic clicked. Thanks for any help provided.
... View more
09-24-2010
07:01 AM
|
0
|
3
|
459
|
POST
|
You are missing some key components: //Use the ImageParameters to set the visible layers in the map service during ArcGISDynamicMapServiceLayer construction. var imageParameters = new esri.layers.ImageParameters(); imageParameters.layerIds = []; imageParameters.layerOption = esri.layers.ImageParameters.LAYER_OPTION_SHOW; //can also be: LAYER_OPTION_EXCLUDE, LAYER_OPTION_HIDE, LAYER_OPTION_INCLUDE myTiledMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://servarcgisprd/arcgis/rest/services/Demo_001/MapServer", {"imageParameters":imageParameters}); <your map>.addLayer(myTiledMapServiceLayer);
... View more
08-26-2010
10:57 AM
|
0
|
0
|
123
|
POST
|
I have a web site: http://txpub.usgs.gov/watershedreview/watershedreview.html that works fine in FireFox and Chrome but doesn't work in IE7 nor IE8. In IE7 the map is squished but the AJAX component works and in IE8 the map is fine but the AJAX doesn't work.
... View more
08-06-2010
09:53 AM
|
0
|
2
|
387
|
Online Status |
Offline
|
Date Last Visited |
06-15-2021
11:48 AM
|