ArcGIS Linear referencing tools duplicating records and erroneous measures

I am using LocateFeaturesAlongRoutes_lr, MakeRouteEventLayer_lr, and MakeRouteEventLayer_lr to combine three different overlays into one based on this question I asked month ago. The code is as follow:

    print "ntttLocating features along roads",
    arcpy.LocateFeaturesAlongRoutes_lr(FTR_TO_RS_TEMP, ORIG_RD_FTR,
                                       "CONTROL_SE", "0 Meters",
                                       "RCSKEY LINE FMEAS TMEAS", "FIRST",
                                       "DISTANCE", "ZERO", "FIELDS",

    print "ttt[OK]nttcombining features and PDT schedule",
                                "RCSKEY LINE FMEAS TMEAS",
                                LP_SCHEDULE, "RCSKEY LINE START END",
                                "UNION", ROAD_LP_JOINED_TEMP,
                                "RCSKEY LINE FMEAS2 TMEAS2",
                                "NO_ZERO", "FIELDS", "INDEX")

    print "ttt[OK]ntttNew event route layer",
    arcpy.MakeRouteEventLayer_lr(ORIG_RD_FTR, "CONTROL_SE",
                                 "RCSKEY LINE FMEAS2 TMEAS2",

except Exception, e:
    tb = sys.exc_info()[2]
    print "Line %i" % tb.tb_lineno
    print e.message

For some reason, the routine is causing the following two issues:

  1. Duplicate records of overlayed route events. For example, when ArcGIS creates a new record based on a union of two others, it would duplicate it 5 to 10 times.
  2. New fmeas and tmeas that are -0.000023 to 0 and 0 to 2.999977 instead of 0 to 3 as in the original layers

I am quiet certain that the two issues are related and was wondering if anyone can shed a light

InfoWindows in Nested Polygons (Google Maps Api 3)

I have a large polygon with thick borders inside which there are several smaller polygons something like multiple city polygons inside a state border. The problem with this is that the info-windows for some of the polygons don’t show up when i click the polygon.(i have set up a click listener for each smaller polygon)

Toolvalidator script is not working in ArcGIS Server

I have made a small GP tool in ArcMap, which is also having some validation code in tool validator class. And it is working fine as GP tool in ArcGIS desktop(Arcmap). But when i published the same tool as Geo-Processing service added as toolbox in ArcMap, it is not considering any validations.
Ex: Disable/Enable some textboxes.

What should i do to integrate these validations in GP service also?

web based GIS geoprocessing vs desktop based GIS geoprocessing [closed]

difference between the WEB and DESKTOP GIS geoprocessing (buffer)

  • what is the main difference in the area of processing speed or retrival speed of output
  • take in case of contour generation from DEM , what should I prefer in this case desktop or web based gis (in terms of time taken to complete task ,processing speed etc)

Point Distance analysis tool in ESRI ArcMap is not calculating all observations

I’m grading homework for a number of students who are doing the same GIS assignments, and in the latest one, three of them had answers that varied from the rest of us when I looked at their statistics in the point distance table. 28 observations should have been recorded, but each of them only had 18, 19 and 20 observations recorded respectively, throwing their averages off. I can’t find an answer online.

Any input?

how to create a multipoint geometry in arcgis using python and arcPy library

I have specific points and I need to create multipoint geometries, in a model-builder python script, following an equation that provides me the new (x,y) points around my initial point. Is there any way that you provide a function that produces Multipoints ?

Is the MakeFeatureLayer temporary location the same as “in_memory”? [duplicate]

Geoprocessing tool for finding specific point within polygon

I have a ArcGIS task and cannot find a solution.
I try to find a certain point within a polygon (see picture). This example is handmade and I need a geoprocessing solution
Point in Polygon

I point I try to get is the one that is furthest away from the borders of the polygon, but not only from the outline of the polygon (this would be centroid), but ALSO from the inner line. Thus this would be the point around which I could draw/buffer the biggest circle around within the polygon (without touching the borders of the polygon).
I hope my explanation was understandable.

ERROR 001243 preventing automatic publishing of geoprocessing service

I am trying to automate the process of publishing a geoprocessing service to ArcGIS for Server 10.2.2, using a python script:

import arcpy  
result = r"C:dataContourLineFunction.rlt"  
connectionPath = r"C:UserssofAppDataRoamingESRIDesktop10.2ArcCatalogarcgis on localhost_6080 (admin).ags"  
sddraft = "ContourLineFunction.sddraft"  
sd = ""  
serviceName = "ContourLineFunction"  

# create service definition draft  
    result, sddraft, serviceName, server_type="ARCGIS_SERVER",  
    connection_file_path=connectionPath, copy_data_to_server=False,  
    folder_name=None, summary="lorem ipsum", tags="gp",  
    executionType="Synchronous", resultMapServer=False,  
    showMessages="INFO", maximumRecords=1000, minInstances=1,  
    maxInstances=5, maxUsageTime=100, maxWaitTime=10, maxIdleTime=180)  

analyzeMessages = arcpy.mapping.AnalyzeForSD(sddraft)

The result from the AnalyzeForSD function contains multiple errors 001243:

      (u'ERROR 001243: The ContourLineFunction/in_string_version parameter is missing a syntax dialog explanation in the item description', 92): [],  
      (u'ERROR 001243: The ContourLineFunction/yCoordinate parameter is missing a syntax dialog explanation in the item description', 92): [],  
      (u'ERROR 001242: Tool ContourLineFunction is missing item description summary', 80): [],  
      (u'ERROR 001243: The ContourLineFunction/xCoordinate parameter is missing a syntax dialog explanation in the item description', 92): [],  
      (u'ERROR 001243: The ContourLineFunction/radius parameter is missing a syntax dialog explanation in the item description', 92): []} ...  

I know I can get rid of the errors by manually entering item descriptions in the Service Editor in ArcMap/ArcCatalog.

I have tried to find the settings in the sddraft file, but nothing looked like the right place for the values.

I have tried to find something inside the .rlt-file (geoprocessing result), but this was all binary stuff inside a ZIP file :-(

How can I automate the setting of the item descriptions?

Where to find comprehensive descriptions of tools in QGIS, SAGA, Orfeo, etc. toolboxes? [closed]

There exists a large number of tools for QGIS (e.g. SAGA, GRASS, ORFEO etc.) – however none of these have sound description of the aim of the tool, the algorithm itself, differences to other similar tools and a hints for the interpretion of the result. How can I judge which tool to use if I do not know this essential background information?

This leads to a great problem that many people use sophisticated analyses but apply wrong (or only standard) parameters or thresholds as they do not know which parameter to adjust. ESRI provides simple explanations for their tools (also they seem not to be written by experts but programmers), taudem has useful description – It would be great to have similar descriptions for the other available opensource tools too!

Many, many thanks to all the programmers – but after working so hard could you please please please add half a page to describe the approach, add references, and explain (shortly) your parameters and the results and codes?

Any hint where to get background information on the different morphology/hydrology tools is highly appreciated!
Thanks a lot!

Question and Answer is proudly powered by WordPress.
Theme "The Fundamentals of Graphic Design" by Arjuna
Icons by FamFamFam