|
POST
|
What steps are you taking to add the DWG file? You should be able to simply add the dwg to an ArcMap session simply by using the Add Data Button. When you add the DWG do you already have other features open in your session. IF you do and you don't see your DWG try this. Hit the Full Extent Button. If it zooms way out you have an unreferenced drawing. If you go to full extent and it does not zoom way out... Start a brand new ArcMap session. Add the DWG all by itself. Do you see it now? Chances are your DWG is simply NOT georeferenced or not georeferenced properly. Meaning that it is not situated in the real world. That and it might not be to proper scale. I once converted a DWG for a client to ArcGIS. Turned out the DWG was scaled so small that the entire system which should have been 30 miles across was about an inch in the real world. It only appeared as a little dot. Hi all, I'm trying to import a CAD dwg file into ArcMap but when I do I don't see anything appear in the display. Also, the attribute tables for each layer (point, polyline, etc.) don't have any entries in them. Why is this happening??
... View more
04-12-2013
07:19 AM
|
0
|
0
|
4967
|
|
POST
|
You may need to use arc catalog and for each feature set the default value for each attribute to nothing. Essentially you are creating a new feature when you cut and it is making those values the default value. I use a graphical query to select polygons, cut the polygons with a border polyline and then remove "cut" polgyons outside the border polyline. Now, I need the attributes on the final result. Any simple ways to do this? Or, do I need another relation? private function showSoils(event:MouseEvent):void
{
var cutPolyInside:Polygon = new Polygon;
var cutPline:Polyline = new Polyline;
geomArr = [];
geomArr2 = [];
geomArr.push(hostComponent.graphic.geometry);
var iPoly:Polygon = hostComponent.graphic.geometry as Polygon;
// convert the polygon into polyline for cutting
cutPline = polygonToPolyline(iPoly);
cutPline.spatialReference = new SpatialReference(102003);
try
{
queryFeaturesGraphical(hostComponent.graphic.geometry);
}
catch (error:Error)
{
msgVisible = false;
Alert.show(error.message);
}
function queryFeaturesGraphical(geom:Geometry):void
{
var queryParams:Query = new Query();
queryParams.returnGeometry = true;
var queryFields:String = "*";
queryParams.outFields = queryFields.split(",");
queryParams.outSpatialReference = hostComponent.map.spatialReference;
queryParams.geometry = geom;
queryParams.spatialRelationship = "esriSpatialRelIntersects";
var url:String = "http://gis.macombgov.org/ArcGIS/rest/services/FLEX2/Feature_Natural/MapServer/9";
var queryTask:QueryTask = new QueryTask(url);
queryTask.execute(queryParams, new AsyncResponder(onResult, onFault));
}
function onResult(featureSet:FeatureSet, token:XMLList = null):void
{
try
{
for each (var graphic:Graphic in featureSet.features)
{
geomArr2.push(graphic.geometry);
}
beginCutting();
}
catch (error:Error)
{
msgVisible = false;
Alert.show(error.message);
}
}
function onFault(info:Object, token:Object = null):void
{
msgVisible = false;
Alert.show(info.toString());
}
function beginCutting():void
{
myGeometryService2.addEventListener(GeometryServiceEvent.CUT_COMPLETE, cutCompleteHandler);
myGeometryService2.cut(geomArr2,cutPline);
}
function cutCompleteHandler(event:GeometryServiceEvent):void
{
myGeometryService2.removeEventListener(GeometryServiceEvent.CUT_COMPLETE, cutCompleteHandler);
msgVisible = false;
var relationParameters:RelationParameters = new RelationParameters();
relationParameters.geometries1 = myGeometryService2.cutLastResult.geometries;
relationParameters.geometries2 = geomArr;
relationParameters.spatialRelationship = RelationParameters.SPATIAL_REL_WITHIN;
myGeometryService2.addEventListener(GeometryServiceEvent.RELATION_COMPLETE, relationCompleteHandler);
myGeometryService2.relation(relationParameters);
}
function relationCompleteHandler(event:GeometryServiceEvent):void
{
myGeometryService2.removeEventListener(GeometryServiceEvent.RELATION_COMPLETE, relationCompleteHandler);
var result:Array = event.result as Array;
// highlight the geometries within the polygon.
for each (var obj:Object in result)
{
var resultGraphic:Graphic = new Graphic(obj.geometry1);
resultGraphic.symbol = graphicSymbol2;
myGraphicsLayer.add(resultGraphic);
}
}
... View more
04-12-2013
06:23 AM
|
0
|
0
|
493
|
|
POST
|
When you published the data did you enable editing? Also do you have permissions to edit the data. I have published a Feature Service, however am unable to edit it. I try editing in ArcMap and receive two messages: "No editable layers" and "The workspace containing this data cannot be edited." I have registered the data source and versioned the geodatabase. What else may be the issue?
... View more
04-10-2013
07:08 AM
|
0
|
0
|
3202
|
|
POST
|
Where are you trying to create the new folder? I am using 10.1 and Windows 7 and it works just fine. Make sure you are not trying to create the new folder in a connected database. We've noticed a "feature" in ArcCatalog 10.1 on Windows 7 where if we select File-> Connect to folder from the main toolbar, then click New Folder button, change the "New Folder" name to one we want and hit ok, we get an error message: the path you entered is an invalid or non-existent directory. Verified ArcCatalog 10.1 on XP behaves correctly and connects the new folder. One possible workaround: after "creating" the new folder name, cancel out of the Connect to Folder dialog, then bring it back up and you can then select the newly created folder. Rather klunky. Just wondering if there may be an update coming soon that corrects this "feature" or how do I add this to the list of things to fix in a future update? Thanks
... View more
04-10-2013
07:06 AM
|
0
|
0
|
2644
|
|
POST
|
Does your text file contain the same column headings? If it does it will rename them that way. Why do it with code. Simply perform a join manually. it will probably not happen. After the following code is run the attribute table on the shape file to which a comma delimited text file was joined contains the field names as listed on the first line of the text file. In the exported shape file of the joined feature class and table, the field names from the joined text file now appear as qryResults,qryResul_1, qryResul_2, qryResul_3, qryResul_4 instead of the field names in the table of ACTNUM, MA_,SA_,NH_, and PIN. This worked fine in 10.0 and now in 10.1 the next function following the export that uses the field names fails. Is this the result that should be expected from this join in 101? Thanks........Scott Dim bolJoin As Boolean bolJoin = JoinTableToLayer(pGFLayer, pRTable, "PIN", "PIN") pFClass = pGFLayer.DisplayFeatureClass exportFC(pFClass, "taxlots_2") 'pFLayer = New FeatureLayer 'pFClass = pFWorkspace.OpenFeatureClass("taxlots_2") 'pFLayer.FeatureClass = pFClass 'pFLayer.Name = "taxlots_2" 'pMap.AddLayer(pFLayer) 'pMxDoc.UpdateContents() '**************************** End Sub Public Function JoinTableToLayer(ByVal pFeatureLayer As IGeoFeatureLayer, _ ByVal pTable As ITable, _ ByVal sLayerField As String, _ ByVal sTableField As String) As Boolean Dim pMemoryRelationshipClassFactory As IMemoryRelationshipClassFactory Dim pRelationshipClass As IRelationshipClass Dim pDisplayRelationshipClass As IDisplayRelationshipClass 'On Error GoTo ErrorHandler 'pMemoryRelationshipClassFactory = New MemoryRelationshipClassFactory pMemoryRelationshipClassFactory = New MemoryRelationshipClassFactoryClass() pRelationshipClass = pMemoryRelationshipClassFactory.Open("Join", pFeatureLayer.DisplayFeatureClass, sLayerField, pTable, sTableField, "forward", "backward", esriRelCardinality.esriRelCardinalityOneToOne) pDisplayRelationshipClass = pFeatureLayer On Error GoTo ErrorHandler pDisplayRelationshipClass.DisplayRelationshipClass(pRelationshipClass, esriJoinType.esriLeftOuterJoin) JoinTableToLayer = True Exit Function ErrorHandler: 'ErrorMessage "modGlobals:JoinTableToLayer()" End Function
... View more
04-10-2013
06:48 AM
|
0
|
0
|
715
|
|
POST
|
Yes you can. Add the tabular data to your MXD Right click on the feature layer and select Join under joins and relates. In the Join Data dialog choose Join Attributes from a Table and fill in the rest of the fields to join you tabular data. However, it will not do your current extent. It will join to all the features in the feature layer. Hello, I have a service with a feature layer (A) and a tabular data (B). In my Air app, I have a AttributeTable with property "featureLayer" set as my feature layer (A), so when I change my map extent, the contents of my attributeTable also changes. So my question is: Is it possible to make JOIN between my tabular data (B) and my attributeTable? I just want tabular data for those features which are within my current map extent. Thanks.
... View more
04-10-2013
06:46 AM
|
0
|
0
|
582
|
|
POST
|
I believe in order to change these values you must delete the geometric network. Make your changes and then rebuild the network with the new weights. Of course always practice on a copy first when dealing with the deletion of GMN's. Always compress your database BEFORE deleting a network. I do it 2 or 3 times just to make sure. Compress it again after deleting. Hey all, I'm just learning how to make edits on network datasets. We have a third-party data provider but when I find errors, instead of waiting n months for it to be fixed I'd like to fix it on my own. What I'm having problems with is changing the ONEWAY from "FT" to "TF" - when I make that modification the network does not rebuild because it does not know any changes have been made. Can someone explain why this happens and how I can fix this?
... View more
04-10-2013
06:40 AM
|
0
|
0
|
2110
|
|
POST
|
Which version are you using? From a blank mxd session. meaning you have nothing loaded. Right click on the toolbar area. When the drop down opens go to the bottom and click customize. One the customize window that pops up select the options tab. There a number of choices there. If you select Save all customizations to document it will only save them to the MXD you are using. Unchecked it will save it the Normal. So what ever you do that change will be there. Not to be used if multiple people use your license. Click Back on the Toolbar Tab Select New The New Toolbar window should pop up. The name should be Custom 1 (or similar) give it a name. Myself I call it Roberts Toolbar. When you hit Ok it should appear in your toolbars. Now click on the Commands tab. Find the individual commands you wan to have in your toolbar. You can find commands using the search box. For example type in Edit On the left it will show all the categories containing a command that contains the word edit. Go down to the Editor category. There should be 7 commands there (depending on ArcGIS version) If you want the Save Edits command simply single click on it and drag it to your new toolbar. Personally I keep 6 customized toolbars depending on what I am doing. Hello, here is what I am trying to do. I want to make my own edit bar. As far as I could go: There is an Start Edit Button, when it clicked Editor is started plus I list all visible layers and under each layer I place IFeatureTemplate control. The only problem now is that FeatureTempale controls look disabled, even thought Editing is on. How can I activate them? Thank you in advance.
... View more
04-10-2013
05:50 AM
|
0
|
0
|
525
|
|
POST
|
No filtering with ArcGIS online. However, if you open the map in ArcGIS Explorer Online you can create queries. Also, if you use the option to Open with ArcGIS Desktop 10 it will create a feature package which can be opened on your desktop and used just like ArcGIS Good morning I am using my trial account of ArcGIS online - and have added the following layer to a map: http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hurricanes/NOAA_Tracks_1851_2007/MapServer However, I cannot seem to be able to do a filter or query. Under content, Filter does not appear. Any ideas? Eric Walters
... View more
04-08-2013
11:57 AM
|
0
|
0
|
679
|
|
POST
|
Have you tried saving it as a layer file and then using the symbology from the layer file in the new viewer Hello All, Does anybody know if you can pass symbology that is set in you GP Service to your viewer? Eric
... View more
04-08-2013
11:47 AM
|
0
|
0
|
662
|
|
POST
|
Your client cannot view the 10.1 because they only have 10.0 What I would suggest is either upgrading your client to 10.1 (which they have already paid for if they have a current license) or acquire a 10.0 database and doing their work in there and do not upgrade the database to 10.1 I had this issue with 3 of my clients. One of them simply refused to upgrade and I had to work in a 9.3 database for quite some time for them. I have a raster in a geodb. It's just a raster in ArcGIS's native format, not a mosaic dataset. I am working in ArcGIS 10.1, but the client has Arc 10.0. We found that the raster is not recognized in 10.0. The only way to make it viewable in 10.0 is to delete the colormap. But the colormap is actually quite important. Is there a way to have a colormap in 10.0? I could not find any info on this backward incompatability problem in the ArcDoc.
... View more
04-08-2013
11:29 AM
|
0
|
0
|
662
|
|
POST
|
Nate, Personal Geodatabase or SDE or Shapefiles. Are you features Joined to another feature or a table? If so that could be causing issues. If in a Geodatabase, or SDE have you compressed it lately? For the FID compressing your database may take care of that. Especially in SDE. When you create and or delete features it creates a delta table where the edit is saved. You cannot see it but it is there. and it will consider the FID as being used. when you compress your system it should free that up. Hello, I am currently working on ArcGIS 10.1 SP1, every once in a while, when I am editing and click "save edits" the attributes for the last point that I had created disappears. The point itself is still visible but to get the attribute table back to normal I have to close and reopen ArcMap. I have noticed that after point creation, the FID will not be sequential. The problem will occur the next time that I save my edits. Hope to hear from you soon. Thanks. Nate
... View more
04-08-2013
11:14 AM
|
0
|
0
|
6472
|
|
POST
|
Switch to Classic Snapping. also you may have issues if you are working with polygons that are in a topology. Are you finishing the auto complete by hitting the F2 button? I just digitized a parcel and i either hit F2 or double click on the last point. I am digitising a map in ArcMap 10.0 SP 2 with a few hundred polygons. I use auto complete polygons to avoid drawing all the lines twice. I use it using both straight segment and trace (along another layer) to draw the lines. Most polygons end up right, but some aren't created when I finish drawing. Also when trying again and making sure to go from existing polygons' vertices or crossing polygons' boundaries the polygon won't draw. A workaround I found is drawing the polygon in parts. But still, one part may draw and the other may not. I then draw even smaller parts and smaller parts until it works. Eventually I fill the polygon with smaller parts (sometimes 2, sometimes 20) and merge them, but it is costing me a lot of time circumventing around unwanted and strange ArcMap behaviour. I looked up various other posts and errors about auto-complete. The main one if found was about the polygon drawn not being complete visible, but I tried zooming out until I saw the polygon drawn and all the adjacent polygons in full and it still wouldn't draw. Also some polygons will draw regardless of zoomlevel. Anyone encounter this before and found a (better) way to deal with it?
... View more
04-05-2013
12:18 PM
|
0
|
0
|
7253
|
|
POST
|
Unfortunately lots of things change between shapefiles and geodatabases. Like brackets and quotation marks. Kind of late but you best best with custom symbols is to stick with using Fonts then they will work with shapefiles, geodatabases, sde (yea things change again when going to sde) and ArcGIS online. I write a custom symbol component like logomarker symbol ,but i use agg instead of gdi. When I open shape files in arcmap and use my custom symbol to render the data, It is successful. However , when I open geodatabase files,as the same as shape files, It will be fail. It render blank. When I load this data again. It will render with the default symbol correct. Why? I use aggplus which is encapsulated like GDI+. the main code is follow(full code about main class in attachment): Aggplus::Graphics *m_pGraphics; STDMETHODIMP CCartoSymbolMarker::SetupDC(OLE_HANDLE hDC, ITransformation *Transformation) { m_ipTrans = Transformation; m_pGraphics = Graphics::FromHDC((HDC)hDC); return S_OK; } STDMETHODIMP CCartoSymbolMarker::Draw(IGeometry *Geometry) { if (!Geometry) return E_POINTER; IPointPtr spPoint(Geometry); if (spPoint == NULL) return E_FAIL; double x=0, y=0; FromMapPoint((IDisplayTransformation*)m_ipTrans, spPoint, &x, &y); Pen myPen(Color(255,0,0,255), 1); m_pGraphics->DrawRectangle(&myPen, x, y, 10, 20); return S_OK; } STDMETHODIMP CCartoSymbolMarker::ResetDC() { delete m_pGraphics; m_pGraphics = NULL; return S_OK; } Aggplus Graphics class: Graphics *Graphics::FromHDC(HDC hdc) { return(new Graphics(hdc)); } Graphics::Graphics(HDC hdc) : m_dwConfigFlags(0) { RECT clipBox; ::GetClipBox(hdc, &clipBox); int nW=clipBox.right-clipBox.left; int nH=clipBox.bottom-clipBox.top; ASSERT(nW>0 && nH>0); z_Create(nW, nH, -4*nW, NULL); m_dwConfigFlags|=def_flag_G_FromHDC; m_fromhdc_HDC=hdc; m_fromhdc_X=clipBox.left; m_fromhdc_Y=clipBox.top; } Graphics::~Graphics() { #ifdef def_AP_Update_Dc_at_End if(m_dwConfigFlags & def_flag_G_FromHDC) { BITMAPINFO hDib; memset(&hDib, 0, sizeof(BITMAPINFO)); hDib.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); hDib.bmiHeader.biWidth = m_dwWidth; hDib.bmiHeader.biHeight = m_dwHeight; hDib.bmiHeader.biPlanes = 1; hDib.bmiHeader.biBitCount = 32; hDib.bmiHeader.biCompression = BI_RGB; hDib.bmiHeader.biSizeImage = m_dwWidth * m_dwHeight * 4; #ifndef _X_NODCAlpha_ LPVOID pBits; HBITMAP hBitmap = CreateDIBSection(m_fromhdc_HDC, &hDib, DIB_RGB_COLORS, &pBits, NULL, 0); if(!hBitmap) ASSERT(FALSE); else { memcpy(pBits, buffer, m_dwWidth * m_dwHeight * 4); HDC mdc=CreateCompatibleDC( m_fromhdc_HDC ); if(!mdc) ASSERT(FALSE); else { HBITMAP hbmOld=(HBITMAP)::SelectObject(mdc, hBitmap); BLENDFUNCTION bln; bln.BlendOp=AC_SRC_OVER; bln.BlendFlags=0; bln.SourceConstantAlpha=255; bln.AlphaFormat=AC_SRC_ALPHA; AlphaBlend(m_fromhdc_HDC, m_fromhdc_X, m_fromhdc_Y, m_dwWidth, m_dwHeight, mdc, 0, 0, m_dwWidth, m_dwHeight, bln); //BitBlt(m_fromhdc_HDC, m_fromhdc_X, m_fromhdc_Y, m_dwWidth, m_dwHeight, mdc, 0, 0, SRCCOPY); ::SelectObject(mdc, hbmOld); //::GdiFlush(); DeleteDC(mdc); } ::DeleteObject(hBitmap); } #else SetDIBitsToDevice(m_fromhdc_HDC, m_fromhdc_X, m_fromhdc_Y, m_dwWidth, m_dwHeight, 0, 0, 0, m_dwHeight, buffer, &hDib, DIB_RGB_COLORS); #endif //_X_NODCAlpha_ } #endif //def_AP_Update_Dc_at_End delete(m_agg_pREN); delete(m_agg_ppixf); if(!(m_dwConfigFlags&def_flag_G_ExtBuffer)) { delete(buffer); } } result: custom symbol in arcmap symbol selector [ATTACH=CONFIG]23246[/ATTACH] shape file use my custom symbol, correct [ATTACH=CONFIG]23243[/ATTACH] geodatabase use my custom symbol. fail and blank [ATTACH=CONFIG]23244[/ATTACH] load the data again , it render correct with defalut symbol, but data is twice [ATTACH=CONFIG]23245[/ATTACH]
... View more
04-05-2013
12:13 PM
|
0
|
0
|
2184
|
|
POST
|
Have you tried adjusting the visibility scale. You can adjust it so they don't turn on until you get to within a set scale. Unfortunately not a lot of great options in ArcGIS online for displaying as you would on desktop. I am tackling a project that contains several new elements for me since I am a high school social studies teacher and not a full-time GIS professional. For this particular project I am trying to show the various US interventions during the Cold War around the world. I have created individual points for each intervention. These points are in a shapefile that contains a list of 49 different interventions. The fields include the country of the intervention, the year, a short description and whether or not a certain type of action occurred. Example: Guatemala, 1954, (description) and the following values for the six types of action possible: Command=1, Troops=0, Bombing=1, Naval=0, Nuke=1, Jets=0. What this means is that in 1954 we used Command Operations, Bombing and Nuclear Threats to intervene in Guatemalan affairs. On this particular point then I would like to see the three distinct symbols for those types of action. Currently I can achieve this by creating 6 layers but the symbols are all stacked on top of each other. Here is the link to my first attempt at a map service: http://bit.ly/10EHUAU This has all been done in Desktop 10.1 Advanced. I plan to create a feature service on our AGOL account once I have solved this problem. Thanks for any advice.
... View more
04-05-2013
12:06 PM
|
0
|
0
|
904
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | 01-27-2023 07:28 AM | |
| 1 | 05-05-2026 06:56 AM | |
| 1 | 02-26-2020 07:13 AM | |
| 1 | 11-04-2019 09:14 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|