|
POST
|
Using latest arcgis python libs and jupyter etc... Has anyone successfully called GIS().map().add_layer(feature class object) when the feature class object creation specified a drawing_info=? Everything succeeds until the map is rendered and then the following error is triggererd: TypeError: undefined is not an object (evaluating 'x.drawingInfo.renderer.type')
... View more
04-12-2020
09:39 AM
|
0
|
1
|
672
|
|
POST
|
Is there a way to programmatically perform "Import Map"? I created and saved a web map to my portal in Jupyter and would subsequently like to save the map in my project.
... View more
04-06-2020
01:56 PM
|
0
|
0
|
405
|
|
POST
|
This seemed to do the trick: wm_as_json = json.loads(str(wm.definition)) wm_as_json['mapOptions'] = json.loads('''{ "extent" : { "xmin":-88.55, "ymin":17.55, "xmax":-72.75, "ymax":38.05, "spatialReference" : { "wkid" : 4326 } }}''') wm_as_json['exportOptions'] = json.loads('''{ "dpi" : 300, "outputSize" : [1000,1000]}''') mapping.export_map(webmap_as_json=wm_as_json)
... View more
04-03-2020
05:29 AM
|
0
|
0
|
1657
|
|
POST
|
Looking for explanation of how to generate "web_map_as_json" string as the argument to mapping.export_map()
... View more
04-02-2020
08:02 PM
|
0
|
3
|
1721
|
|
POST
|
How do I suppress the ugly legend title that's auto-populated when GIS().map(legend=True,...)?
... View more
04-02-2020
03:52 PM
|
0
|
1
|
650
|
|
POST
|
Thanks. Looking to avoid pushing/pulling anything to/from remote sites so want to keep everything on local system. Is it possible to create a webmap and edit legend with arcpy and then import back to webmap?
... View more
04-02-2020
01:15 PM
|
0
|
0
|
606
|
|
POST
|
How can a web map created in Jupyter notebook be imported by arcpy and/or vice-versa. I created a web map and would like to use arcpy legend editing capabilities on this web map. Is it possible?
... View more
04-02-2020
12:16 PM
|
0
|
2
|
652
|
|
POST
|
Found reason: SEDF which works = {'x': -13657899.64491753, 'y': 5749953.6899396395, 'spatialReference': {'wkid': 102100, 'latestWkid': 3857}} SEDF which doesn't = {'x': -13657899.64491753, 'y': 5749953.689939638, 'spatialReference': {'wkid': 4326}} Also discovered that sdf.spatial.plot() will fail to render (without generation an error) if it encounters NaN values. Here's snippet to remove NaNs from SEDF: sdf = GeoAccessor.from_xy(df, 'x', 'y', sr=102100) # 102100 is necessary to render using sdf.spatial.plot() method ... sdf[~sdf['SHAPE'].apply(lambda r: numpy.isnan(r['x']) or numpy.isnan(r['y']))] # drop NaNs which cause plot to silently fail
... View more
04-01-2020
11:25 AM
|
0
|
0
|
985
|
|
POST
|
Continuing to add to this thread since it may help other newbies to arcGIS Pro like like me! Discovered that sdf.spatial.plot() will fail to render (without generation an error) if it encounters NaN values. Here's snippet to remove NaNs from SEDF: sdf = GeoAccessor.from_xy(df, 'x', 'y', sr=102100) # 102100 is necessary to render using sdf.spatial.plot() method ... sdf[~sdf['SHAPE'].apply(lambda r: numpy.isnan(r['x']) or numpy.isnan(r['y']))] # drop NaNs which cause plot to silently fail
... View more
04-01-2020
08:31 AM
|
0
|
0
|
658
|
|
POST
|
Found reason: SEDF which works = {'x': -13657899.64491753, 'y': 5749953.6899396395, 'spatialReference': {'wkid': 102100, 'latestWkid': 3857}} SEDF which doesn't = {'x': -13657899.64491753, 'y': 5749953.689939638, 'spatialReference': {'wkid': 4326}}
... View more
03-31-2020
06:06 PM
|
1
|
1
|
658
|
|
POST
|
Related to the issues above, is it possible to use sdf.spatial.plot(map_widget=...) on an SEDF derived from a regular panda DF where the SEDF was NOT created with import_data() method? The SEDF was instead created as follows: sdf = GeoAccessor.from_xy(df, 'x', 'y')
... View more
03-31-2020
03:13 PM
|
0
|
0
|
658
|
|
POST
|
I have the following simple Spatially Enabled Data Frame (SEDF): Should sdf.spatial.plot(map_widget=m) work for this object because it's not working for me. An exact duplicate SEDF was created with GIS().content.import_data().query().sdf and plot DOES work for this one. Main question is: Is calling plot() on an SEDF that was NOT created with import_data valid?
... View more
03-31-2020
02:26 PM
|
0
|
1
|
1053
|
|
POST
|
BTW, here's an excellent reference for how to code bulk transformations using pyproj: High-performance bulk transformation of coordinates
... View more
03-31-2020
11:37 AM
|
1
|
0
|
3616
|
|
POST
|
from pyproj import Proj, transform print(transform(Proj('epsg:4326'), Proj('epsg:3857'), 45.810, -122.691)) # longitude first, latitude second. (-13657899.64491753, 5749953.689939638)
... View more
03-31-2020
10:06 AM
|
1
|
1
|
3616
|
|
POST
|
The points are mapped correctly and thank you again!
... View more
03-31-2020
09:20 AM
|
0
|
2
|
3616
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-31-2020 10:06 AM | |
| 1 | 03-31-2020 06:06 PM | |
| 1 | 03-31-2020 11:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-14-2024
08:52 PM
|