|
POST
|
It's not a bad solution - I will let you know how the resolution works. Thanks!
... View more
04-24-2017
08:44 AM
|
0
|
1
|
3029
|
|
POST
|
And FYI, the JSON map prints perfectly fine when posting directly on the server; no infoWindow is printed on the map (using server 10.3).
... View more
04-24-2017
06:28 AM
|
0
|
0
|
3029
|
|
POST
|
Thomas, That's correct, well, technically, IIS is preventing the request. The only difference I can see between successful and unsuccessful print tasks relates to the embedded HTML content in the JSON. The issue occurs even when the infoWindow is closed (the object is still supplied in the JSON) - it only works if you clear the address string from the Search widget. Regarding your suggestion, the thought has crossed my mind, but wouldn't you say this is a kludge? There are other issues with the Print task I've discovered when the infoWindow is open (with different failure points/errors) - it really seems like there are bugs. I don't recall these issues in years past, so maybe it was not an issue in earlier API versions. I cannot test the hypothesis since the features breaking Print weren't actually available in previous versions, e.g. the Search widget was added in v3.13, and I didn't convert to it right away.
... View more
04-24-2017
06:26 AM
|
0
|
4
|
3029
|
|
POST
|
Well, you can import a table into ArcGIS to work with the technology without needing to create an x/y layer. If you decide to do that, check out Converting degrees-minutes-seconds values to decimal Ddegree values—Help | ArcGIS for Desktop If you want to do it in Excel, check out Degrees-Minutes-Second (DMS) to Decimal-Degrees (DD) with Excel | Geospatiality
... View more
04-21-2017
12:37 PM
|
1
|
1
|
1051
|
|
POST
|
Are you doing this in ArcGIS, in SQL, in a flat txt/CSV, or an Excel file?
... View more
04-21-2017
12:25 PM
|
1
|
3
|
1051
|
|
POST
|
Here's what I'm using: JSAPI v3.20 ArcGIS Server 10.3 ASP.NET Proxy 1.1.0 ASP.NET 4.0 I am having an issue when printing a map using Print (Print | API Reference | ArcGIS API for JavaScript 3.20 ). This occurs only after entering an address into the Search widget, and then plotting the result - the request is blocked during any export attempt after this action. The issue "Unexpected token <" results from the API expecting a JSON response, but getting an HTML page... the page in question is a custom error page capturing a Microsoft validation issue with "potentially dangerous content". Here's the request going through Fiddler: {
"mapOptions": {
"showAttribution": false,
"extent": {
"xmin": -9758929.205244847,
"ymin": 5153837.351343746,
"xmax": -9757291.78077969,
"ymax": 5155062.73245334,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
},
"scale": 4513.98870499674
},
"operationalLayers": [{
"id": "layer0",
"title": "layer0",
"opacity": 1,
"minScale": 591657527.591555,
"maxScale": 70.5310735,
"url": "https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer"
},
{
"id": "map_graphics",
"opacity": 1,
"minScale": 0,
"maxScale": 0,
"featureCollection": {
"layers": [{
"layerDefinition": {
"name": "pointLayer",
"geometryType": "esriGeometryPoint"
},
"featureSet": {
"geometryType": "esriGeometryPoint",
"features": [{
"geometry": {
"x": -9758110.34234326,
"y": 5154449.96419052,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"attributes": {
"Addr_type": "StreetName",
"Match_addr": "Main Ave, Chicago, Illinois, 60613",
"StAddr": "Main Ave",
"City": "Chicago",
"score": 100,
"searchTheme": "arcgisSearch",
"searchResult": "Main Ave, Chicago, Illinois, 60613",
"searchMoreResults": "moreResults",
"searchMoreResultsItem": "moreItem",
"searchMoreResultsId": "search_more_results",
"searchMoreResultsHtml": ""
},
"symbol": {
"angle": 0,
"xoffset": 6.75,
"yoffset": 13.5,
"type": "esriPMS",
"url": "https://js.arcgis.com/3.20/esri/dijit/Search/images/search-pointer.png",
"width": 27,
"height": 27
},
"infoTemplate": {
"title": "Search result",
"content": "<div class=\"${searchTheme}\"><div id=\"${searchMoreResultsId}\" class=\"${searchMoreResults}\"><div class=\"${searchMoreResultsItem}\">${searchResult}</div><div>${searchMoreResultsHtml}</div></div></div>"
}
}]
}
}]
}
},
{
"id": "layer1",
"title": "layer1",
"opacity": 1,
"minScale": 591657527.591555,
"maxScale": 70.5310735,
"url": "https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer"
}],
"exportOptions": {
"outputSize": [800,
1100],
"dpi": 96
},
"layoutOptions": {
"titleText": "My map title",
"copyrightText": "My map copyright text",
"scaleBarOptions": {
"metricUnit": "esriKilometers",
"metricLabel": "km",
"nonMetricUnit": "esriMiles",
"nonMetricLabel": "mi"
},
"legendOptions": {
"operationalLayers": []
}
}
} ...it appears the info window content HTML is the culprit. In my proxy web.config, if I revert validation to 2.0: <httpRuntime requestValidationMode="2.0" /> ...the request works. This is because .NET 2.0 only validates page requests, whereas 4.0 validates ALL HTTP requests. I'd like to call it a day and just implement the web.config change, but I'm wary about making such a modification due to XSS/security concerns. I thought about maybe encoding/decoding, but there doesn't seem to be a way to do this without modifying the JSAPI directly. Anyone have any ideas? Geonet is pretty quiet about this issue... Is it a bug? Print works fine otherwise! Thank you!
... View more
04-21-2017
10:22 AM
|
0
|
7
|
4013
|
|
POST
|
For more info - Editing nonversioned geodatabase data in SQL Server using SQL—Help | ArcGIS for Desktop Actually, on second thought, you might want to start here first - What type of data can be edited using SQL?—Help | ArcGIS for Desktop
... View more
03-14-2017
12:16 PM
|
2
|
0
|
738
|
|
POST
|
Have you thought about running a procedure/job directly in your RDBMS?
... View more
03-14-2017
12:14 PM
|
0
|
1
|
738
|
|
POST
|
If it worked recently, and there have been no code pushes, I would recommend contacting your system admin; it may be a firewall issue.
... View more
03-07-2017
08:09 AM
|
0
|
0
|
743
|
|
POST
|
So, it sounds like it's not a length issue since it's in a fgdb (and your first example works). It doesn't seem like a perms issue since you're specifying your scratch enviro (and your first example works), and, as you're appending a datestamp, it doesn't seem likely that you're trying to overwrite a file with same name. I'm guessing you've already made sure you have space and aren't experiencing memory issues... Have you tried saving as a .tif or another directory just to see if anything changes? We might need to see more of the script, if you can give it, to see if there's something else at play.
... View more
02-27-2017
06:56 AM
|
0
|
0
|
14312
|
|
POST
|
Since you would like to use your raster layer as the clip/intersect feature, you may want to try converting it to vector using the "raster to polygon" tool (Conversion) and then running your vector geoprocessing.
... View more
02-27-2017
06:13 AM
|
3
|
3
|
16254
|
|
POST
|
If you have created a legend, it should be available right on the map service, something like: https://raster.nationalmap.gov/arcgis/rest/services/SampleWorldCities/MapServer/legend?f=pjson You can also create the legend using something like: Legend | ArcGIS API for JavaScript 3.19
... View more
02-17-2017
07:05 AM
|
1
|
1
|
5810
|
|
POST
|
You might want to take a look at High performance web apps with big datasets as feature layers | ArcGIS Blog There's some info on generalizing your dataset to reduce size as well as info on how to better consume the big data within an application. That being said, since you're not pushing the data to the server, I'd give it a go!
... View more
02-14-2017
01:46 PM
|
1
|
0
|
2118
|
|
POST
|
You've got the database registered, so when you analyze prior to publishing, there's no warnings about having to push the data to the server?
... View more
02-14-2017
01:32 PM
|
0
|
0
|
2118
|
|
POST
|
What about storing your data and geographies on SQL Server?
... View more
02-14-2017
01:13 PM
|
0
|
0
|
2118
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2020 01:25 PM | |
| 1 | 03-20-2019 09:07 AM | |
| 2 | 07-31-2015 07:31 AM | |
| 1 | 09-14-2015 12:14 PM | |
| 1 | 05-12-2015 12:04 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-27-2023
02:30 AM
|