POST
|
Hi, Actually I copy pasted that which was in bit n pieces....I dint recognise before putting here. But I have assigned that outside the loop only. Regards, Akshay Loya
... View more
07-10-2015
09:27 AM
|
0
|
0
|
432
|
POST
|
Robert, This the code I'm using: var queryT:QueryTask = new QueryTask(); queryT.url = "url"; queryT.useAMF= false; var queryB:Query = new Query(); queryB.outSpatialReference = map.spatialReference; queryB.returnGeometry = true; queryB.outFields = ["*"]; queryB.where= "DCPDistrictCode = 123"; queryT.execute(queryB, new AsyncResponder(onResultT, onFaultT)); function onResultT(featureSetB:FeatureSet, token:Object = null):void { var graphicProvider1:ArrayCollection = new ArrayCollection(); if (featureSetB.features.length == 0) { Alert.show(resourceManager.getString('ViewerStrings', 'SearchAlert3')); } else for each(var myFirstGraphic:Graphic in featureSetB.features) { var arrtest:Array= new Array; arrtest.push(myFirstGraphic.geometry); } responder = new mx.rpc.Responder(myGeometryService_unionCompleteHandler,myGeometryService_faultHandler); myGeometryService.union(arrtest,responder); } protected function myGeometryService_unionCompleteHandler(event:GeometryServiceEvent):void { doQuery(event.result[0] as Geometry); } protected function myGeometryService_faultHandler(event:FaultEvent):void { Alert.show("Service temporarily unavailable. Please try again","Information") } protected function doQuery(geom:Geometry):void { query.geometry = geom; query.outFields = ["*"]; query.outSpatialReference = map.spatialReference; query.returnGeometry = true; query.spatialRelationship = Query.SPATIAL_REL_INTERSECTS; QueryTk.url = "url"; QueryTk.useAMF = false; QueryTk.execute(query,new AsyncResponder(QueryIntersect,QueryIntersectFault)); } protected function QueryIntersect(featureSetSpa:FeatureSet, token:Object = null):void { if (featureSetSpa.features.length = 0) { Alert.show("No Records found"); cursorManager.removeBusyCursor(); } else { var arrObjectId:Array=new Array(); var strObjectId:String= new String(); for(var i:int=0;i<featureSetSpa.features.length;i++) { arrObjectId.push("'" +FeatureSet+ "'"); } strObjectId = arrObjectId.toString() ; } } protected function QueryIntersectFault(featureSet:FeatureSet, token:Object = null):void { Alert.show("Service temporarily unavailable. Please try again","Information"); }
... View more
07-09-2015
09:36 PM
|
0
|
6
|
1190
|
POST
|
Robert, That is fine. Mine is SDE Geodatabases, it automatically check the validity of each geometry when they are uploaded. Error: Suspended: TypeError: Error #1034: Type Coercion failed: cannot convert com.esri.ags.geometry::Polygon@11bdc129 to com.esri.ags.events.GeometryServiceEvent.
... View more
07-09-2015
12:11 AM
|
0
|
8
|
1190
|
POST
|
Yes more than one geometry. Yes I'm using GeometryService. Geometry type is polygon which I'm trying to get it unioned but it is throwing an error. Intersect feature can be point line or polygon. Regards, Akshay Loya
... View more
07-08-2015
08:55 AM
|
0
|
10
|
1190
|
POST
|
Robert, I'm querying on one feature class and getting its geometries and passing that geometry to intersect with other layer. Can you please share code snippet to pass array of geometries. Regards
... View more
07-07-2015
09:17 PM
|
0
|
12
|
1190
|
POST
|
Hi All, Can any help me with code in flex which can intersect two feature class? Regards
... View more
07-07-2015
07:32 AM
|
0
|
14
|
4809
|
POST
|
Hey Robert, In my case it showing degraded quality because of some other reasons. Thanks!
... View more
07-01-2015
11:32 PM
|
0
|
0
|
793
|
POST
|
Selecting only those villages (features) from village feature class having DistrictCode = 1732
... View more
06-15-2015
09:20 PM
|
0
|
0
|
2302
|
POST
|
The query is like: Highlight Villages where DistrictCode is 1732 having Colleges within 1 Km. So I'm selecting features from village feature class which have DistrictCode = 1732.
... View more
06-15-2015
09:04 PM
|
0
|
5
|
2302
|
POST
|
Hi Sephe, Select by location takes feature class as input but I've features rather. So was wondering how I would use that.
... View more
06-15-2015
08:44 PM
|
1
|
7
|
2302
|
POST
|
Hi, Can anyone suggest me, which is the best way to perform spatial query with buffer distance for huge data. I have used arcobjects at the back end but it takes lot of time. Any help would be appreciated. Regards, Akshay Loya
... View more
06-15-2015
03:00 AM
|
0
|
9
|
5219
|
POST
|
Hi Javier, I'm new to arcobjects. May be a silly question but can you please tell me how to set the Cache extent. Like they have used in the link which you have provided.
... View more
05-20-2015
02:22 AM
|
0
|
1
|
2839
|
POST
|
Robert, Actually the problem is quality degrade below 96 DPI when converted to pdf. Is there any way so that I can maintain at least 96DPI.
... View more
05-14-2015
12:07 AM
|
0
|
2
|
793
|
POST
|
Hi, Can anyone help with improving the quality of my pdf in flex. Image which is been added has very low resolution. This is the code which I have used till now for exporting the pdf. Thanks in advance Regards, myPDF = new PDF(Orientation.LANDSCAPE,Unit.MM, Size.LETTER);
myPDF.setDisplayMode(Display.FULL_PAGE, Layout.SINGLE_PAGE);
map.scaleBarVisible = true;
map.zoomSliderVisible = false;
map.panArrowsVisible = false;
setPDFPageElements(myPDF, 220, 150, "Attribute Query Output " , "", "Copyright: State Planning Commision");
myPDF.addImage(map,null,20,20,220,150,0,1,false,ImageFormat.JPG,100,Blend.NORMAL,null);
var grid:org.alivepdf.data.Grid;
var dataArray:Array = ArrayCollection(dgAttribute1.dataProvider).toArray();
grid = new org.alivepdf.data.Grid(dataArray, 0, 0, new RGBColor(0x999999), new RGBColor(0xFFFFFF),false,
new RGBColor(0x000000), 1,Joint.MITER, null);
grid.columns = createGridColumns();
var newPage:Page = new Page ( Orientation.LANDSCAPE, Unit.MM, Size.LETTER );
myPDF.addPage(newPage);
myPDF.getCurrentPage().setUnit(Unit.MM);
myPDF.textStyle(new RGBColor(0x000000), 1);
myPDF.addGrid(grid, 3.5, 3.5, true);
var file : FileReference = new FileReference()
file.save(myPDF.save(Method.LOCAL),"exportresult.pdf");
... View more
05-12-2015
11:53 PM
|
0
|
4
|
4493
|
Title | Kudos | Posted |
---|---|---|
1 | 02-01-2018 06:19 PM | |
1 | 08-03-2022 10:17 PM | |
1 | 01-11-2018 07:40 AM | |
1 | 01-11-2018 06:12 AM | |
1 | 08-28-2017 02:59 AM |
Online Status |
Offline
|
Date Last Visited |
06-26-2023
01:44 PM
|