|
POST
|
We have a topology that includes Parcel, Zoning, and General Plan (GP) feature classes. The Zoning and GP "Area boundary must be covered by Boundary of" Parcel. We included this rule such that when a parcel boundary is adjusted then the zoning and GP must move with it. However, there are MANY exceptions to the rule which were painstakingly reviewed when the topology was created. Now we would like to add some additional feature classes to participate in the topology. I tested this, and see that as soon as I add a new feature class, all the exceptions go out the window and we would need to start all over. Is there any way to keep the marked exeptions? Thanks, Sebastian Roberts
... View more
04-11-2011
08:32 AM
|
0
|
0
|
821
|
|
POST
|
I would like to add a feature class to the topology of a featureDataset in ArcSDE (version 10) that was registered as versioned. I disabled archiving and unregistered the featureDataset as versioned. I tried to run the "Add featureclass to topology" tool, but get the error "Cannot add a class that is registered as versioned to a topology". (The feature class and the topology are both in the featureDataset which I just unregistered as versioned) Thanks for any insight, Sebastian Roberts
... View more
04-07-2011
04:44 PM
|
0
|
0
|
506
|
|
POST
|
After making edits in a versioned featuredataset, the version changes tool lists 15 updates to the parcel feature class which was not edited. The parcel and zoning feature classes participate in a topology. The first of the 7 changes listed for parcel are miniscule changes in the shape area and lenght. I assume that this is an annoying side affect of topology. Even if we just split one zoning feature (note, no boundary shared with parcels is edited), then several parcel features that merely touch the split feature have their shapes updated by a miniscule amount. Is this a "feature" or a bug? Secondly, I have 8 features in the feature class that was not edited that appear in the version changes tool as updates, but no change is highlighted. I understood from the version changes document help documen that at least one property should be printed as bold so you can see what attribute (or shape) was changed. Why would these be listed? See the attached image. Finally, if I validate topolgy for the area, all topology errors that were marked as exceptions for any of the featues in all of the feature classes that participate in the topology that touch the split zoning feature are unmarked and I have to review them all again. Is this also a "feature"?
... View more
12-14-2010
11:36 AM
|
0
|
2
|
814
|
|
POST
|
Great. Thanks. That is exactly what i needed to get started.
... View more
10-08-2010
04:24 PM
|
0
|
0
|
350
|
|
POST
|
I have a request to embed just the query task widget in a web page for a department (basically enter a search string and show the results just as records in the widget). Does anyone have an example of project where this has been done. I'm having trouble figuring out which pieces I need to tease out of the sample viewer without having to recreate the design of the widget and the functionality of the record repeater that displays the results. Thanks, Sebastian Roberts
... View more
10-08-2010
12:52 PM
|
0
|
2
|
661
|
|
POST
|
The problem is solved with the help of ESRI technical support. The string was not being parsed correctly. In the proxy.ashx file, in the ProcessRequest function, the following line: string uri = Uri.UnescapeDataString(context.Request.QueryString.ToString()); must be changed to: string uri = context.Request.Url.Query.Substring(1); As Dasa mentioned, this has already been fixed in the new asp.NET proxy with the link provided in Dasa's last post, but as far as I can tell this doesn't work with a dynamic proxy, so if you use the dynamic proxy created by Thang Le mentioned in my last post, you would need to make this change if using wildcards in your where clause. Sebastian Roberts
... View more
09-28-2010
04:22 PM
|
0
|
0
|
513
|
|
POST
|
Unfortunately, I am not using the out of the box token page because it does not support dynamic tokens. I am using the dynamic token proxy page posted by Thang Le of ESRI in this forum. I am using his modified version, and don't think I have expertise to combine with the file you recommend. I do think the wildcard causes the query to fail because the percent sign is used as a wildcard, but also is used in the query string (see below) perhaps an escape character. Is there some way to change the proxy.ashx file so that the query string is parsed correctly when a wildcard is used at the beginning of the where clause? The two queries are identical except for the where clause. This query fails using: where APN LIKE '%0840604%' http://<webserverName>/proxy.ashx?http://<ArcGISserverName>/ArcGIS/rest/services/internal/parcel_owner_mail_situs_sdevw_test/MapServer/0/query?where=APN%20LIKE%20%27%250840604%25%27&f=json&returnGeometry=false&outFields=APN This query works using: where APN LIKE '0840604%' http://<webserverName>/proxy.ashx?http://<ArcGISserverName>/ArcGIS/rest/services/internal/parcel_owner_mail_situs_sdevw_test/MapServer/0/query?where=APN%20LIKE%20%270840604%25%27&f=json&returnGeometry=false&outFields=APN Thanks, Sebastian Roberts
... View more
09-27-2010
02:57 PM
|
0
|
0
|
513
|
|
POST
|
I am still having issues with this. If I put the service in my public folder on our GIS server everything works fine. If I move the service into the secured folder on the GIS server using a dynamic proxy, most of the queries work fine unless I put a wildcard in the where clause (but only at the beginning). So, unsecured all queries below work. Secured, This works: queryTask.where = APN LIKE '0840604%' This doesn't work: queryTask.where = APN LIKE '%0840604%' Why would adding the wild card at the beginning of the string make it fail? The error I get is [RPC fault faultstring="" faultCode = "400" faultDetail = "Unable to perform query. Please check your parameters."} If I try the exact same queries through the REST API on the secured service they also work fine. It seems that somehow the dynamic proxy doesn't like the wildcard. Thanks for any insight, Sebastian Roberts
... View more
09-24-2010
09:18 AM
|
0
|
0
|
513
|
|
POST
|
Thanks Robert, That did the trick. I was able to add the search address as an attribute to the graphics layer. Now when someone rolls over a row in the data grid, I can loop through the graphics and search for corresponding search address in the graphics layer. Thanks so much for your help as always, Sebastian Roberts
... View more
09-20-2010
02:50 PM
|
0
|
0
|
341
|
|
POST
|
I was able to find a solution for this. I changed the dataProvider from the sample to point instead to an ArrayCollection. Then the user can upload a text file with one address on each line. The textfile is read into the the ArrayCollection which automatically updates the DataGrid.
import flash.events.IOErrorEvent;
import mx.collections.*;
import flash.events.Event;
import flash.net.FileFilter;
import flash.net.FileReference;
import flash.utils.ByteArray;
private var fileRef:FileReference
//File types which we want the user to open
private static const FILE_TYPES:Array = [new FileFilter("Text File", "*.txt;*.text")];
private function doLoad():void{
fileRef = new FileReference();
//listen for when they select a file
fileRef.addEventListener(Event.SELECT, onFileSelect);
//listen for when then cancel out of the browse dialog
fileRef.addEventListener(Event.CANCEL,onCancel);
//open a native browse dialog that filters for text files
fileRef.browse(FILE_TYPES);
}
/************ Browse Event Handlers **************/
//called when the user selects a file from the browse dialog
private function onFileSelect(e:Event):void
{
//listen for when the file has loaded
fileRef.addEventListener(Event.COMPLETE, onLoadComplete);
//listen for any errors reading the file
fileRef.addEventListener(IOErrorEvent.IO_ERROR, onLoadError);
//load the content of the file
fileRef.load();
}
//called when the user cancels out of the browser dialog
private function onCancel(e:Event):void
{
trace("File Browse Canceled");
fileRef = null;
}
/************ Select Event Handlers **************/
//called when the file has completed loading
private function onLoadComplete(e:Event):void
{
//get the data from the file as a ByteArray
var data:ByteArray = fileRef.data;
var result:String = new String(fileRef.data);
var record:Array = new Array();
var obj:Object;
record = result.split("\r\n");
for (var i:int = 0; i< record.length; i++){
obj = new Object();
obj.street = record;
addressDataImported.addItem(obj);
}
// addressDataImported.addItem({street:"test street"});
//read the bytes of the file as a string and put it in the
//textarea
//outputField.text = data.readUTFBytes(data.bytesAvailable);
//clean up the FileReference instance
fileRef = null;
}
//called if an error occurs while loading the file contents
private function onLoadError(e:IOErrorEvent):void
{
trace("Error loading file : " + e.text);
}
And here is the dataGrid element <mx:DataGrid id="dg1"
dataProvider="{addressDataImported}" scroll="true" width="100%" height="150"
itemClick="onItemClick(event)"
itemRollOver="onItemRollOver(event)"
itemRollOut="onItemRollOut(event)">
<mx:columns>
<mx:DataGridColumn dataField="street" headerText="Street" width="55"/>
</mx:columns>
</mx:DataGrid>
... View more
09-20-2010
01:51 PM
|
0
|
0
|
377
|
|
POST
|
I have a widget that allows a user to upload a text file which is read into a data grid. The I call the locator task "addresstoLocations" with an AsynchronousResponder. In my onREsult function, I can access an Array with all the result candidates, but it seems that I don't have access to the actual address that was sent to the geocoder. I would like to be able to tie the values in the data grid back to their corresponding graphics (so I can highlight or zoom to). This doesn't seem possible with an asynchronous responder becasue I dont' know which return belongs to which datagrid element. I'd like to be able to add the seach address to the graphic as an attribute, or add the matched address to the dataGrid in a second column. Without one of those solutions, the only thing I can do when a user clicks on a datagrid row is match the data grid address string with the graphic address string which only works for exact matches that have a score of 100. Is there some way to access the address field that was sent to the task in the Result function? Or alternatively, can you run this as a synchronous response, so that you still have access to all the variables in the calling function?
private function doFind():void {
myGraphicsLayer.clear();
var myAddress:Object;
var myOutFields:Array = ["Match_addr"];
addressData = new ArrayCollection();
for (var i:Number=0; i < addressDataImported.length; i++) {
var tempAddressObj:GeoAddress = new GeoAddress();
tempAddressObj.address = addressDataImported.street;
myAddress = {Street:tempAddressObj.address};
locateTask.addressToLocations(myAddress, myOutFields, new AsyncResponder(onResult, onFault));
}
//populates the data Grid with the actual addresses returned.
addressDataImported = addressData;
map.addLayer(myGraphicsLayer);
//nested function
function onResult(candidates:Array, token:Object = null):void {
if (candidates.length > 0) {
var addressCandidate:AddressCandidate = candidates[0];
var myGraphic:Graphic = new Graphic();
myGraphic.geometry = addressCandidate.location;
myGraphic.symbol = resultSymbol;
myGraphic.toolTip = addressCandidate.address.toString();
myGraphic.attributes = addressCandidate.address;
addressData.addItem(addressCandidate.address);
myGraphic.addEventListener( MouseEvent.MOUSE_OVER, onMouseOver );
myGraphic.addEventListener( MouseEvent.MOUSE_OUT, onMouseOut );
myGraphicsLayer.add(myGraphic);
}
function onFault(info:Object, token:Object = null):void {
Alert.show("Failure: \n" + info.toString());
}
}
private function onItemClick(event: ListEvent):void
{
if (myGraphicsLayer.numGraphics > 0){
highlightedGraphic = findGraphicByAttribute(event.itemRenderer.data)
if (highlightedGraphic) {
var myPoint:MapPoint = highlightedGraphic.geometry as MapPoint;
map.scale = 2257;
map.centerAt(myPoint);
}
}
}
public function findGraphicByAttribute( attributes : Object ) : Graphic
{
for each( var graphic : Graphic in myGraphicsLayer.graphicProvider)
{
//only can search for an exact match
if ( graphic.attributes. === attributes)
{
return graphic;
}
}
return null;
}
... View more
09-20-2010
01:38 PM
|
0
|
2
|
874
|
|
POST
|
Hi, I am using the batch geocode sample found at http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&scriptID=16855 The widget loads a list of addresses from an xml file. How could I have a user either paste a comma separated list of addresses into a textArea, or import a text file from a user? Perhaps there is another better solution, but basically I need to get a list of addresses like "123 South Street" "345 Hampton Street" into an xml file, or into my data grid. Thanks, Sebastian Roberts Nevada County, CA GIS
... View more
09-16-2010
02:59 PM
|
0
|
1
|
746
|
|
POST
|
Robert, Thanks! That fixed it. I just added the code below to my index.html in the params section (I'm not using a wrapper file, but rather a swfobject generated index file). if (swfobject.ua.ie && swfobject.ua.win) // http://code.google.com/p/swfobject/wiki/api
{
params.wmode = "opaque"; // workaround for cursor issue - https://bugs.adobe.com/jira/browse/SDK-26818
} Sebastian Roberts Nevada County, CA GIS
... View more
09-14-2010
12:33 PM
|
0
|
0
|
468
|
|
POST
|
I have added the functionality to give the user the option to export the map to a jpeg from the right click context menu. When I right click on my Map to get the context menu using Internet Explorer, the mouse (cursor) disappears. I can still pick a menu choice, and it reappears on a left click, but it is quite annoying. Does anyone know of a fix? I am using the Adobe 3.3 SDK, Flash Player 10.1, and the 1.3 ESRI API. Thanks, Sebastian Roberts Nevada County GIS
... View more
09-14-2010
08:50 AM
|
0
|
2
|
967
|
|
POST
|
I would like to enable archiving on a feature Dataset. Now, as I understand it, certain schema changes (such as adding a feature Class) to this featue dataset will automatically unregister the dataset as versioned. What happens to archiving when I unregister and register as versioned. From the documenation, it sounds like I can preserve the archiving class as a temporal table. When I reregister the featureDataset, will this temporal table also be registered as the archive table, or do I have to start a new archive?
... View more
09-13-2010
11:22 AM
|
0
|
0
|
1574
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-02-2015 12:08 PM | |
| 1 | 02-08-2016 08:22 AM | |
| 1 | 08-13-2015 10:32 AM | |
| 1 | 08-13-2015 09:44 AM | |
| 1 | 05-04-2015 03:17 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|