POST
|
I have some annotations and want to convert them into Line with rotated angle so I can present it in label feature in ArcMap. However I can only convert the annotation into "Polygon" without rotated labels...Please advice the correct way to do so, thank you! The conversion steps are as follows, Right click on the annotation in Calalog Go to Export > To Shapefile (single) Provide the "Output Location" and "Output Feature Class" Click OK After conversion, the converted shape file will be automatically append on the layers inside the "Table Of Contents"
... View more
06-22-2015
04:43 AM
|
0
|
1
|
3432
|
POST
|
Thanks for your understanding, Rebecca. As my currently basemap mxd is using shape file as layer source, so I suppose to convert the e00 into shape files. However, if it is better to merge and convert them into fgdb, I will be happy to hear that also. Would you kindly suggest the python script to merge and convert the e00 files into fgdb while you feel free to access your PC? Thank you so much!
... View more
06-18-2015
08:24 PM
|
0
|
1
|
432
|
POST
|
My client delivered me several of e00 zip-files and tell me to merge them into one layer so that I can convert the merged e00 into shape file. However I cannot find any tutorial to do such thing...Please advice, thanks.
... View more
06-18-2015
02:10 AM
|
0
|
4
|
3388
|
POST
|
Not yet. The problem is still exist. For work around (seems stupid), I told my client that there are some bugs in ArcGIS Javascript API, this issue may be fixed in the future......
... View more
06-18-2015
01:00 AM
|
0
|
0
|
627
|
POST
|
Thanks Paul, It works! Can this API convert the geometry based on my coordinate system of shape file? I also don't like DOJO as it is huge size and slow performance....
... View more
01-28-2015
11:08 PM
|
0
|
2
|
1345
|
POST
|
Please find the attached image as below, although I have changed the scalebarUnit to "Meter", it really just changes the unit from "km" to "m". Here is the code // create a print template for each choice
templates = arrayUtils.map(templateNames, function (ch) {
var plate = new PrintTemplate();
//plate.preserveScale = true; // Default = false
plate.layout = plate.label = ch;
plate.format = "JPG";
plate.layoutOptions = {
"legendLayers": legendLayers,
"scalebarUnit": "Meters"
};
plate.preserveScale = false;
return plate;
});
// create the print dijit
var printer = new Print({
"map": map,
"templates": templates,
url: xxx
}, dojo.byId("printButton"));
printer.startup(); Please advice, thanks. Km: Meter:
... View more
01-28-2015
08:53 PM
|
0
|
4
|
4463
|
POST
|
Thanks for your reply! Is this written in Node.js? I am not sure if I can setup the Node.js in my servers, but is there any other library, server object extension or sample to do the same thing also?
... View more
01-26-2015
08:26 PM
|
0
|
6
|
1345
|
POST
|
Refering to this sample, I can do the things as expected. However, my ArcGIS Server and client PC cannot go to the internet, so can I setup the same thing in my intranet environment or can I just simply enable it in my ArcGIS manager? Thanks.
... View more
01-22-2015
02:36 AM
|
0
|
8
|
7008
|
POST
|
Referring to this topic, I can search the result within a drawn polygon, however it requires me to set a template for returned result: var symbol = new SimpleMarkerSymbol( SimpleMarkerSymbol.STYLE_CIRCLE, 12, new SimpleLineSymbol( SimpleLineSymbol.STYLE_NULL, new Color([247, 34, 101, 0.9]), 1 ), new Color([207, 34, 171, 0.5]) ); featureLayer.setSelectionSymbol(symbol); It works fine, but I want to make every returned records have its own color which is determined by its attributes value, i.e. blue color represents cars, yellow represents building, etc... featureLayer.queryFeatures(query, function (featureSet) { var inBuffer = []; var renderer = new ClassBreaksRenderer(null, "category_id"); renderer.setMaxInclusive(true); var categoryColorList = []; var inBuffer = []; for (var i = 0; i < featureSet.features.length; i++) { if (featureSet.features.geometry == null) continue; inBuffer.push(featureSet.features.attributes[featureLayer.objectIdField]); var rcolor = new Color([Math.floor((Math.random() * 255) + 1), Math.floor((Math.random() * 255) + 1), Math.floor((Math.random() * 255) + 1)]); if (typeof eval("categoryColorList._" + featureSet.features.attributes.category_id) == "undefined") { eval("categoryColorList._" + featureSet.features.attributes.category_id + " = rcolor"); } var symbol = new SimpleMarkerSymbol({ "color": eval("categoryColorList._" + featureSet.features.attributes.category_id), "size": 5, "angle": 0, "xoffset": 0, "yoffset": 0, "type": "esriSMS", "style": "esriSMSSquare", "outline": { "color": eval("categoryColorList._" + featureSet.features.attributes.category_id), "width": 1, "type": "esriSLS", "style": "esriSLSSolid" } }); renderer.addBreak({ field: "category_id", minValue: featureSet.features.attributes.category_id, maxValue: featureSet.features.attributes.category_id, symbol: symbol }); } query = new Query(); query.objectIds = inBuffer; (function (featureLayer) { featureLayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW, function (results) { featureLayer.refresh(); }); })(featureLayer); }); Although within the polygon, the results are returned, the related records outside the polygon are also being shown. I was wondering if someone could let me know if there are something else that I should care about. I am not going to use graphic layer to store the returned result because I want to keep things simple, with only 1 feature layer, thanks you.
... View more
12-12-2014
02:11 AM
|
0
|
2
|
4219
|
POST
|
I accidentally created a feature class without specifying its XY cooridinate System when using "create feature class from XY table" function. Although I can change it in properties, I cannot update the SRID to "2326" as shown in the attached image. How can I achieve this? Thanks.
... View more
10-22-2014
01:08 AM
|
1
|
1
|
2391
|
POST
|
I am not sure if anyone has also faced this problem, but the objectid will suddenly increase with a big number. Does anyone know why? Thanks.
... View more
10-10-2014
02:33 AM
|
0
|
2
|
1403
|
POST
|
I successfully use "Editor widget with simple toolbar" to create a polygon, which let me create feature, editing existing features' attribute and deleting the features. However, I would like to only allow the editor to create feature and edit it, which means editor is not allowed to edit existing or deleting features. Can I achieve this? I have modified some code but it returns me an error: TypeError {stack: (...), message: "Cannot read property '_init' of undefined"} "TypeError: Cannot read property '_init' of undefined at S._editHandler (http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/js/esri/layers/FeatureLayer.js:81:21) at Object.E.load (http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/js/esri/layers/FeatureLayer.js:43:66) at http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:635:478 at c (http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:221) at d (http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:10) at resolve.callback (http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:80:350) at c (http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:436) at d (http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:10) at resolve.callback (http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:80:350) at c (http://localhost:55918/Scripts/arcgis_js_api/library/3.10/3.10/init.js:79:436)" Refering to this sandbox, the code is changed as below: var waterbodies = new FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/0",{ mode: FeatureLayer.SELECTION_NEW, outFields: ['*'] });
... View more
10-09-2014
07:57 PM
|
0
|
0
|
532
|
POST
|
Finally, I get it works...I have 2 esri_sde services...one is "esri_sde", another is "n_esri_sde". I don't know why I have already specify the "-i n_esri_sde" but it keeps using esri_sde. BTW, Does there any other command tool for me to export and import the feature? Would you please suggest the best way to do so? If I just have to export the table structure of a feature, does the command also support? Thank you.
... View more
10-08-2014
09:30 PM
|
0
|
1
|
677
|
Title | Kudos | Posted |
---|---|---|
1 | 10-22-2014 01:08 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|