Tag Info

New answers tagged

0

Try this out: import arcpy, os, traceback, sys from arcpy import env env.workspace="in_memory" env.overwriteOutput = True try: def showPyMessage(): arcpy.AddMessage(str(time.ctime()) + " - " + message) mxd = arcpy.mapping.MapDocument("CURRENT") color_layer=arcpy.mapping.ListLayers(mxd,"silver.tif")[0] ...


0

You can accomplish this with multiple layers pointing to the same raster source. Give each layer its own separate scale range and symbology. If you wanted to have a particular symbology between 1:25 and 1:100, you'd set those values on the General tab as shown below. Then choose the appropriate symbology on the Symbology tab. Then you might have, say, two ...


1

I think I would tackle this using Arcmap's Query Layers, why not leverage the power of your database? You won't have to export and make and store a derivative layer where it can possibly go stale (needing to be updated once source data changes). Open ArcMap, click File-->Add Data-->Add Query Layer Build the SQL Query (you may need to look up equivalent ...


0

For a raster-based approach, you can use the Euclidean Distance tool. For this example, I changed the raster display to histogram equalized stretched (Layer Properties > Symbology > Stretch > Type : Histogram Equalize). The stretch type will give you control on how the buffers appear--you may want to use a custom histogram. Also, you will want to ...


1

In the symbol selector you can choose 'Circular Gradient' then select edit symbol, here you can select the color ramp style and outline type. When selecting the outline type select 'Edit Symbol' again and choose the 'Null' option from the drop-down menu: The result is a gradient buffer with no outline like this: There may be other ways to accomplish ...


2

You could add a field to the shapefile that describes whether the dead animal - open the shapefile go to Properties>Attributes and add new columns. This could be a text field for 1 character (width) ("Y" or "N") or anything you like. This video can help: https://www.youtube.com/watch?v=iuuFEq0a5gg You can then change the style/symbology based on this ...


1

I would do the following: Export the table (txt) Open in excel or similar Add column for year Use datepart to parse out the year Delete extra columns (leaving only year and UniqueID) Save as txt. Join back to the feature class in an mxd and symbolize by your new year column. I believe this should be fairly easy to automate using model builder to keep ...


3

I don't have SDE, but since it sounds like you only have a few years, you should be able to select a year and create a layer from that selection. Or just add the SDE feature multiple times and use different definition queries.


1

I've tested your script with a bit of modification: mxd = arcpy.mapping.MapDocument("CURRENT") layers=arcpy.mapping.ListLayers(mxd) color_layer=layers[-1] lyr=layers[-2] df = arcpy.mapping.ListDataFrames(mxd)[0] arcpy.mapping.UpdateLayer(df,lyr,color_layer,True) lyr.symbology.valueField="color" lyr.symbology.addAllValues() arcpy.RefreshActiveView() ...


0

I got this done, I have accessed the symbol thanks all. private void ArrangeCrossSetionView(IEnumSchematicInMemoryFeature containerElements, IGeoFeatureLayer geoFtr, ISchematicLayer schematicLayer) { ISchematicInMemoryFeature feature; while ((feature = containerElements.Next()) != null) { var symbol = ...


3

For MapInfo there is a tool called Rotate Symbols under the Tools menu. This will allow you to rotate symbols based on a fixed value or an attribute value in a specific column. There is a tutorial available here with detailed instructions. Within ArcMap this can be done on the symbology tab of the point layer properties, using Rotation under the Advanced ...


0

You should have a symbol : All other value , just check this option when you active the button Add all values in your symbol list


2

I ended up trying this out to curve a set of "two point" linestrings using the ST_CurveToLine function as suggested by @Nicklas Avén. I passed the following 3 coordinate sets to the ST_OffsetCurve function : Start of the original line Midpoint of a line offset parallel to the original line End of the original line I used the ST_OffsetCurve function to ...


2

Both Chris W's comment and mr.adam's answer employed pairs of mxd's or multiple data frames to hold pairs of symbology. This got me to thinking about a similar approach. Multiple layer groups could be used to hold multiple symbologies (eg a "design" group and a "print" group). The user could enable the "design" group while doing design work. When the design ...


0

Isn't it possible to right click on the resulting kmz and point it to the layer you want to dub the symbology from?


1

I don't think you can access symbology from a single feature . The symbology renderer is defined at the level of the layer. You can set the renderer from the IGeoFeatureLayer, you access this by casting from IFeaturelayer. More info see: ...


0

You might have better luck using Marker Fill Symbols instead of line fill symbols. In the sample below, I used an 'X' and a 'Cross' available in an Esri symbol set. The first markers I found had fairly heavy line weights; I don't think you can edit those. I was able to find a lighter weight 'Cross' but not a lighter weight 'X'. Hopefully this will put you ...


1

You could set up an .mxd that has all of the print symbology and scale bar, etc. You would never open this document, but you'd build a tool/script that would be run from the viewer mxd. That tool could look at that current viewer, take the extent and data sources and feed them into the template mxd (then save it!) and export that mxd to a pdf. Basically, ...


1

As suggested by @Martin in a comment, the way to do this is by using Group Values. Here I have selected three values (using Ctrl key to multiple select) and am choosing to have them appear using a single symbol. I can now type whatever Label I want for that grouped value.


2

I would suggest creating a new field and then using 'select by attributes'. Do this for each of your three categories and populate your new field with some common value (ie. 1, 2, or 3). You could then base your symbology on this new field and properly show your three different symbols. Bit of a work around but that is how I would approach this problem.



Top 50 recent answers are included