|
POST
|
My guess is that you have an unnecessary vertex on your original shapes somewhere along the edge where the hip-end is being created. Use the Cleanup Shapes tool or manually delete the superfluous vertex. For the nextdoor building where you're also getting hips I think you might have to draw it as two separate boxes.
... View more
08-25-2015
02:05 AM
|
1
|
3
|
1953
|
|
POST
|
Part of the problem is your roof angle of 45 degrees. If you choose a shallower angle such as 30, you'll get no south orientented faces - they are all facing up. So use a steeper angle i.e. 50 and you'll get more consistent results - by using 45 the angle is right on the cusp of facing up and facing south so the results are inconsistent. If you want to use a shallower angle you need to find a way of manipulating the Scope so up-facing faces are detected as facing towards a compass point.
... View more
08-24-2015
01:11 AM
|
1
|
1
|
1953
|
|
POST
|
GeoMedia is a query based platform, I haven't taken the time to fully understand what you're asking but I reckon it does it out of the box - maybe consider switching...............
... View more
08-11-2015
06:45 AM
|
0
|
0
|
822
|
|
POST
|
I suggest adding the imagery first, making a note of the size and offset settings, then adding the height map and changing the settings back if necessary - still not a proper fix but gets the imagery back to the exact same position. Is it possible that your texture map and height maps are different sizes/dimensions?
... View more
08-10-2015
06:03 AM
|
1
|
5
|
4458
|
|
POST
|
Thanks, but that doesn't answer my question, I'd like to know the correct syntax for inputting the raster path; I have tried many variations, including your sugesstions, all without success such as: using the env.workspace setting to set the path and then defining the raster file name typing the full path using raw notation typing the full path using forward slash notation using single quotes using double and single quotes using single and double quotes using triple double quotes using double double quotes setting the raster as a layer and using that typing it as it appears in the GUI i.e. "Same as layer ............" I'm beginning to suspect that the tool doesn't do what the help docs says it does. As I said, I know there are other ways of doing this but I'm just a firm believer the help docs should: 1. Help 2. Reflect how the program works
... View more
07-30-2015
05:53 AM
|
0
|
2
|
3025
|
|
POST
|
I don't think that answers my question, I want to set the cell size using the 'third way' as highlighted in bold in the extract from the help docs below: You can specify the cell size in 3 different ways: Using a single number specifying a square cell size Using two numbers that specify the X and Y cell size, which is space delimited Using the path of a raster dataset from which the square cell size will be imported
... View more
07-30-2015
04:19 AM
|
0
|
4
|
3025
|
|
POST
|
What's the correct syntax for using the path of a raster dataset to set the output cell size as mentioned, but not explained, in the help docs? ArcGIS Help (10.2, 10.2.1, and 10.2.2) I get "ERROR 000628: Cannot set input into parameter cell_size" p.s. I know there are ways round this using GetRasterProperties etc but would like to know how to do it this way. Thanks
... View more
07-30-2015
03:28 AM
|
0
|
8
|
6763
|
|
POST
|
Thanks, that's handy to know, but I'm going to give myself the correct answer because I've just figured out how to amend my script: testField1 = "MyFld1"
testField2 = "MyFld2"
with open ("myTextFile.txt", "a") as text_file:
fcs = arcpy.ListFeatureClasses()
for fc in fcs:
...
#section omitted - tests whether each field exists
...
valueList = []
#test both fields exist and append values to valueList
if(fieldExists1 and fieldExists2):
with arcpy.da.SearchCursor(fc,[testField1, testField2]) as cursor:
for row in cursor:
value = row[0] + "," + row[1]
valueList.append(value)
else:
print fc + " no valid fields"
uniqueValues = set(valueList)
text_file.write('{}'.format('\n'.join(uniqueValues)))
text_file.write('\n')
... View more
07-01-2015
07:33 AM
|
1
|
1
|
1274
|
|
POST
|
I've got a python script that looks for a field name in shapefiles and if it exists writes all unique attribute values to a text file, as follows: testField = "MyField"
with open("myTextFile.txt", "a") as text file:
fcs = arcpy ListFeatureClasses()
for fc in fcs:
fieldList = arcpy.ListFields(fc)
fieldExists = False
for field in fieldList:
if field.name == testField:
fieldExists = True
if(fieldExists):
values = [row[0] for row in arcpy.da.SearchCursor(fc,(testField))]
uniqueValues = set(values)
text_file.write('{}'.format(uniqueValues))
text_file.write('\n') Now I want to test for two fields and write all unique pairs of values to a text file and I'm a bit stuck can anyone help?.... (the test for whether the fields exist is easy, I figured that bit out, but how do I find unique pairs of values?)
... View more
07-01-2015
02:10 AM
|
0
|
3
|
3855
|
|
POST
|
I found the answer - it wont accept lists with this notation - now I have to input my features in a single string separated by semicolons i.e. "feature1.shp Shape.Z Mass_points <None>;feature2.shp Shape.M Mass_points <None>"
... View more
06-25-2015
04:51 AM
|
1
|
0
|
805
|
|
POST
|
When using CreateTin in arcpy I can input a list of shapefiles if they have z-values like this: arcpy.CreateTin_3d(outTin, CoordSys, ["feature1.shp", "feature2.shp"]) However now one feature has z-values and one has m-values. I can create TINs from the features individually like this: arcpy.CreateTin_3d(outTin, CoordSys, "feature1.shp Shape.Z Mass_points <None>") or arcpy.CreateTin_3d(outTin, CoordSys, "feature2.shp Shape.M Mass_points <None>") However if I try to put them into a list...... arcpy.CreateTin_3d(outTin, CoordSys, ["feature1.shp Shape.Z Mass_points <None>", "feature2.shp Shape.M Mass_points <None>"]) I get the following error: File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\ddd.py", line 1735, in CreateTin raise e arcgisscripting.ExecuteError: ERROR 999999............ What's going wrong - the features work together if I generate the TIN using the GUI?
... View more
06-25-2015
02:38 AM
|
1
|
1
|
3990
|
|
POST
|
I reckon you should be using the Sidewalk geometry as the parking spots. Here's something very simple I knocked up in 2 mins - loads of potential to improve it.... attr valency = 3 attr type = "unknown" attr spotWidth = 3 Sidewalk-->split(x){spotWidth:SplitGeom}* SplitGeom--> case valency < 3 || type == "unknown": NIL else: ParkingSpot Make sure you change valency and type to object defined attributes - have a look at these attributes in the objects hopefully you'll see what I'm getting at (I'm trying to exclude the bits of geometry that are too small/ too curved to be a parking spot) and be able to make improvements. Also have a look as the 'Repeat Split' section in the help guide - you'll be able to make other improvements with that info.
... View more
06-19-2015
01:48 AM
|
1
|
0
|
2027
|
|
POST
|
I received some advice on here a while ago that, with ESRI tools, it is always best to perform analysis using many small steps rather than fewer large steps.
... View more
06-18-2015
05:40 AM
|
1
|
0
|
3122
|
|
POST
|
Yep the difference in pixel values in this example is around 0.5m - unfortunately this is enough to show up when the rasters are converted into terrain. This used to be a tried and tested method for us but I always get this noise in Natural Neighbours results - unfortunately I only joined the company at the point of upgrade to Arc10 and have no prior experience of Spatial Analyst so it's difficult to be sure if the upgrade is the poblem - but it seems likely to me.
... View more
06-16-2015
01:43 AM
|
0
|
2
|
939
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-24-2014 05:46 AM | |
| 1 | 12-05-2013 05:15 AM | |
| 1 | 08-24-2015 01:11 AM | |
| 1 | 09-05-2017 11:44 PM | |
| 1 | 10-14-2015 04:17 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-12-2021
02:38 AM
|