Tag Info

New answers tagged

1

If you have access to ArcMap 10.2.1+, you can use Add Geometry Attributes, which allows you to specify a coordinate system. spatref = arcpy.SpatialReference(4326) #WGS 84 arcpy.AddGeometryAttributes_management(FC, "POINT_X_Y_Z_M", "FEET_US", "ACRES", spatref) It's a script, not a tool, which means that you can inspect the code behind it to see what it ...


1

you just need to run a cursor on it and use the projectAs() geometry method. import arcpy fc = r'C:\path_to\your_data\points.shp' wgs = arcpy.SpatialReference(4326) with arcpy.da.UpdateCursor(fc, ['SHAPE@', 'lat_field', 'long_field']) as rows: for row in rows: pnt_wgs = row[0].projectAs(wgs) row[1:] = [pnt_wgs.centroid.Y, ...


1

This is simple technique you should use com.esri.core.geometry.Point class for converting your GPS lat and lng into ArcGIS map point. For Example: private Point ConvertMyLocationPoint(final double x, final double y) { Point wgspoint = new Point(x, y); Point mapPoint = (Point) GeometryEngine.project(wgspoint, SpatialReference.create(4326), ...


0

Yes, Geocoding is only about streets. Its question, are complet data in Google Maps? Completness of data in OSM depends on world area of interest. It is also possible to try Bing REST API. I dont now details.


1

OpenStreetMaps has an API called nominatim. If you like you can access it via a python library called geopy. You can pass a POI in the query. Take a look at this list for available POIs: http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases/EN


0

Geocoding API from mapbox Geocoding Mapbox for address or Nominatim


0

What GIS are you using? If it's ArcGIS, try the Minimum Bounding Geometry tool. Can you give us more info? It would help a lot.


3

This is quick and dirty. Most of this was adapted from the following website: http://www.movable-type.co.uk/scripts/latlong.html I haven't tested this too much but it seemed to work after initial testing. It will return a list of lat, long coordinate pairs along a line at a specified interval. I wrote it in python since I don't know php very well. from ...


0

I managed to solve the problem by converting all of the coordinates to contain in the formula to SWEREF99TM before I calculated the closest point. Then, I converted the closest point found with the formula, back to WGS84. I used SWEREF99TM because it is a grid system, so the formula will work correctly. Note that this will probably not work outside of ...


0

from what I understand, you have a single ungeoreferenced image, and you want to find the extent. This can be done in QGIS QGIS - Using Capture Coordinate If this is an urban map with details in the corners, you can manually match up the corners using the Capture coordinate plugin. start with an empty project Install the OpenLayers plugin (this goes in ...


0

No solution, but two ideas: 1) You could create a list of GroundControlPoints (GCPs) with the lat and long coordinates and the numbers of column and row of the images. Loop through the lat-and long-images and select those values for ever (umpteen) pixel. Then you can use this list of CGPs to georectify/warp your image "image to map". 2) You can create a ...


3

you can't really convert convert distances in degrees into meters as the size of a degree varies as you approach the poles. convert your locations into a projected coordinate system, then calculate your distances.


0

I found some help from this gis post: How to convert projected coordinates to lat/lon using Python? and made a python function to solve my problem def convertEPSGtoWGS(pointX, pointY): # Spatial Reference System inputEPSG = 3857 outputEPSG = 4326 # create a geometry from coordinates point = ogr.Geometry(ogr.wkbPoint) ...


0

I agree with Micky T, it looks like you are using the wrong proj4 string. First, you will need to ensure which projection your numbers are in. WGS84 is the datum, not the projection. One possible projection is UTM, which defines your starting point for your easting and northing in meters. The x and y values that you give sure look like they are a ...



Top 50 recent answers are included