|
POST
|
logged as a bug Esri Inc Bug: NIM#104292 I'll update here if I hear anything else, but as it is a bug it has now left the control of our local Esri.
... View more
08-14-2014
06:27 AM
|
1
|
1
|
2099
|
|
POST
|
Yep - got it with Esri(UK) at the moment, but not much movement.
... View more
08-13-2014
03:27 AM
|
0
|
2
|
2099
|
|
POST
|
Thanks for that - I'll try it later. But I do think it is a bug, or a t least a "Breaking Change" as the examples given measurement-amd | API Reference | ArcGIS API for JavaScript no longer work as the event no longer does what it says it does. On-measure-end is quite clear in what it should do, an event that fires when measurement is ended. It doesn't. It fires when a polygon has been created and an intermediate measurement has been calculated. This only fails for area. For length a result is returned with each click without firing the on-measure-end event.
... View more
08-12-2014
08:39 AM
|
0
|
0
|
2099
|
|
POST
|
Not yet - it would take a fair bit of re-coding - not that urgent at the moment - thanks anyway.
... View more
08-12-2014
06:18 AM
|
0
|
0
|
1307
|
|
POST
|
Ah sql server - What is the meaning of the prefix N in T-SQL statements? - Stack Overflow
You may have seen Transact-SQL code that passes strings around using an N prefix. This denotes that the subsequent string is in Unicode (the N actually stands for National language character set). Which means that you are passing an NCHAR, NVARCHAR or NTEXT value, as opposed to CHAR, VARCHAR or TEXT.
... View more
08-12-2014
06:09 AM
|
0
|
2
|
1307
|
|
POST
|
The N - Dunno - it is what SQL Manager puts in when you design a query - I have no idea why or what it does - I never write it myself and they always work
... View more
08-12-2014
06:08 AM
|
0
|
3
|
1307
|
|
POST
|
Hi I'm trying to re-create this T-SQL in a find task
SELECT OBJECTID, UPRN, LADDRESS, PASTEADDRESS, LOGICAL_STATUS, LPIKEY, PROPERTY_TYPE, ORGANISATION, USRN, STREET_NAME, TOWN_NAME, LOCALITY,
POSTCODE, POSTTOWN, UPDATED, STREET_REF_TYPE, POSTALLYADDRESSABLE, PROPERTYSTATE, LPISTATUS, XREF, YREF, Shape, SortPAON
FROM v_ADDRESSES_FULL_LLPG
WHERE (PASTEADDRESS LIKE N'1 %FORE STREET%')
The important bit is the WHERE. This will return "1 Fore Street" but also " 1 The Fishermans, Fore Street" , "1 - 4 Forestreet" and a host of others. How do I specify this in a query for a find task? Cheers ACM This
... View more
08-12-2014
04:16 AM
|
0
|
5
|
1732
|
|
POST
|
Anyone any ideas on this? As it is it is a breaking change preventing me from moving to 3.10.
... View more
08-11-2014
05:37 AM
|
0
|
0
|
2099
|
|
POST
|
Ok - so two issues now - I think it is time to call the new features in 3.10 as broken, don't you? We need a few more events to hook into and the measure end event to be just that. An event that fires when the measurement has ended - it works for the length, which returns the value after each click, but only fires the measure end event after a double click.
... View more
08-05-2014
03:31 AM
|
0
|
3
|
3988
|
|
POST
|
Jonathan Nope still broken. My code is old style code, so I have the below code in my init function
var measurement = new esri.dijit.Measurement({
map: map,
defaultAreaUnit: esri.Units.SQUARE_METERS,
defaultLengthUnit: esri.Units.METERS
}, dojo.byId('measurementDiv'));
//measurement.hideTool("location");
measurement.on("measure-end", function (evt) {
if (evt.geometry.type === "polygon") {
console.log("Really done.");
measurement.setTool(evt.toolName, false);
}
});
measurement.startup();
And it still returns a polygon after the third click, so ends the task. Cheers ACM
... View more
08-05-2014
01:27 AM
|
0
|
0
|
3988
|
|
POST
|
mmm not good - My domain updates every night with reference values that have been added to a different system.
... View more
08-01-2014
08:46 AM
|
0
|
1
|
3030
|
|
POST
|
Hi I have a Collector app. The data are held on our ArcGIS Server and published via AGOL. I have a domain that controls a reference field. I have just spent the morning getting a nice Python script that recreates the Domain daily to add new possible values. Yet, these values do not appear in Collector or when viewed in AGOL. How can I force a refresh? Cheers ACM
... View more
08-01-2014
08:24 AM
|
0
|
10
|
7831
|
|
POST
|
Hi I want to add some extra layers to my Collector app, which is to be used offline. These layers are not part of the basemap, as the are dynamic, but are not layers I want edited in Collector. I can set the webmap OK with these layers, but i cannot set it for offline mode as it doesn't like these reference layers, which are read in as an AGS map layer. Is there any way I can do this? Cheers ACM
... View more
08-01-2014
08:03 AM
|
0
|
4
|
1838
|
|
POST
|
Jonathan Thanks for that, my code now looks like
measurement.on("measure-end", function (evt) {
console.debug(evt)
if (evt.geometry.type === "polygon") {
console.log("Really done.");
}
});
But it fails - looking at the evt object (hence my console line) it is, as I thought it would be, a polygon after three nodes have been drawn - output below, first is after a single click (ie still drawing), second after a double click Object {toolName: "area", geometry: Object, target: Object} geometry: Object _centroid: null _extent: Object _partwise: null _ring: 0 rings: Array[1] spatialReference: Object type: "polygon" __proto__: Object target: Object toolName: "area" __proto__: Object basecode.js?123:252
Really done. basecode.js?123:254
Object {toolName: "area", geometry: Object, target: Object} geometry: Object _centroid: null _extent: Object _partwise: null _ring: 0 rings: Array[1] spatialReference: Object type: "polygon" __proto__: Object target: Object toolName: "area" __proto__: Object basecode.js?123:252
Really done. And adding the line I want in
this.setTool(evt.activeTool, false);
Throws a huge error, starting TypeError {stack: (...), message: "undefined is not a function"} "TypeError: undefined is not a function Only reverting to the older style event link
dojo.connect(measurement, "onMeasureEnd", function (activeTool, geometry) {
console.debug(activeTool);
console.debug(geometry);
this.setTool(activeTool, false);
enableID();
});
gets the tool disabled - but of course it disables as soon as the third node is created. And geometry type is always polygon. Would adding a Double Click event be too much to ask? Cheers ACM
... View more
07-31-2014
01:43 AM
|
0
|
7
|
3988
|
|
POST
|
Jonathan Any chance this is linked to my other issue BUG: Measurement widget measure-end event issue. - So far un-commented on? Cheers ACM
... View more
07-30-2014
01:14 AM
|
0
|
0
|
1487
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-19-2026 12:29 AM | |
| 1 | 08-28-2025 01:14 AM | |
| 1 | 12-01-2023 06:07 AM | |
| 2 | 11-29-2024 04:32 AM | |
| 1 | 05-28-2024 12:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|