POST
|
Converting from the geodataframe that has z values to a spatial data frame, I lose the z values. When I export out a shapefile from the geopandas geodataframe, then load that back into the arcgis spatial data frame, the spatial data frame has z enabled. So I cannot convert from a geodataframe to a spatial dataframe and keep the z values? I will need to write out to a shapefile, then read it back in to get the z enabled sdf
... View more
05-15-2023
11:46 AM
|
0
|
0
|
449
|
POST
|
I have geopandas data frame with linestring values. When I export from geopandas, my shapefile has_z = True. When I convert this geodataframe to a spatial data frame and export from the spatial dataframe, the has_Z is False Why would this happen?
... View more
05-11-2023
11:16 AM
|
0
|
1
|
477
|
POST
|
I understand that I can read the parquet file in pandas, but why does the documentation claim you can read into a spatial dataframe when you cannot? The docs claim, new in version 1.9 and I'm using arcgis version 2.0.1 This is from the docs: static from_parquet(path, columns=None, **kwargs)¶ Load a Parquet object from the file path, returning a Spatially Enabled DataFrame. Returns Spatially Enabled DataFrame >>> df = pd.DataFrame.spatial.read_parquet("data.parquet") https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html? but every time I try to read a parquet file, i get the same error AttributeError: type object 'GeoAccessor' has no attribute 'read_parquet'
--------------------------------------------------------------------------- Why not remove it from the docs if you cannot read a parquet file? I
... View more
05-10-2023
11:34 AM
|
0
|
1
|
823
|
POST
|
I think you will need to post the code to get some help. It looks like there are issues with the input parameters
... View more
03-20-2023
06:26 AM
|
0
|
0
|
520
|
POST
|
No it doesn't in Pro, I've done it multiple times, without issues, but in EB, it throws an error. I have a valve that has device status is open, when i change it to close, I can run a connected trace in Pro without errors and it stops at the closed valve, but when i run it through experience builder, it fails with dirty areas. Using the same web layer in both
... View more
11-03-2022
04:11 PM
|
0
|
0
|
516
|
POST
|
I am trying to create a Utility Network app in Experience Builder and have come across something weird. In Experience Builder, when I close a valve (edit the valve featureclass to close) and try to run a trace, I receive a dirty areas error, yet if I do the same thing in Pro, with the published Feature service, I get no errors. I am doing it this way, since I am creating custom popup's based on if particular valves are closed or not. Why would the area be dirty in an Experience Builder app, but not in Pro using the same process on the same data?
... View more
11-03-2022
07:58 AM
|
0
|
3
|
582
|
BLOG
|
Are there any widgets in Enterprise that work with simple Trace Networks or are they all for the Utility Network?
... View more
10-07-2022
06:45 AM
|
0
|
0
|
419
|
BLOG
|
Fails to build CS0246 CIMFeaureTemplate CS0246 CIMFeaureTemplate CS0234 NetworkDiagrams doesn't exist in namespace
... View more
09-12-2022
10:15 AM
|
1
|
0
|
4183
|
DOC
|
@RobertScheitlin__GISP I took the existing config and modified the first item to see if i was doing something wrong, i believe my issue may be ssl or rw permissions? {
"identifylayeroption": "visible",
"identifytolerance": 5,
"defaultzoomscale": 5000,
"keepidentifyactive": true,
"returngeometryforzoom": true,
"enablelineselect": true,
"enablefreehandlineselect": true,
"enablepolylineselect": true,
"enableextentselect": true,
"enabletriangleselect": false,
"enablepolyselect": true,
"enablefreehandpolyselect": true,
"enablecircleselect": true,
"enableellipseselect": true,
"enablegraphicclickinfo": true,
"usemaptime": false,
"infoautoclosemilliseconds": 2000,
"autoactivatedtool": "point",
"disablelayerdropdown": false,
"disablealllayerschoice": false,
"replacenullswithemptystring": true,
"enablemouseoverrecordinfo": true,
"enablemouseovergraphicsinfo": true,
"enableHighlight": true,
"identsearchwidgetresults": false,
"layers": {
"onlythese": false,
"layer": [
{
"name": "Fields",
"id": 0,
"url": "https://gis17.mcorp.org/server/rest/services/ONSH/Fields/MapServer",
"fields": {
"field": [
{
"name": "FIELD_NAME",
"alias": "FIELD_NAME",
"useralias": "FIELD NAME"
}
]
},
"links": {},
"zoomscale": 1500,
"forcescale": true
},
{
"name": "Land Use",
"id": 1,
"url": "https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer",
"fields": {
"field": [
{
"name": "LANDUSE_NAME",
"alias": "LANDUSE_NAME",
"useralias": "Landuse Name"
}
]
},
"links": {},
"zoomscale": 1500,
"forcescale": true
},
{
"name": "Traffic Cameras",
"url": "https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer",
"id": 2,
"zoomscale": "2000",
"forcescale": true,
"fields": {
"all": false,
"field": [
{
"name": "URL",
"alias": "URL",
"useralias": "Url"
},
{
"name": "ONLINE",
"alias": "ONLINE",
"useralias": "Online"
},
{
"name": "DESCRIPTION",
"alias": "DESCRIPTION",
"useralias": "Description"
},
{
"name": "LAST_UPDATED",
"alias": "LAST_UPDATED",
"useralias": "Last Updated",
"isdate": true
}
]
},
"links": {
"link": [
{
"alias": "View Traffic Image",
"disablelinksifnull": true,
"disableinpopup": false,
"popuptype": "image",
"content": "{URL}",
"icon": "https://help.arcgis.com/en/webapps/flexviewer/live/assets/images/i_camera.png"
}
]
}
},
{
"name": "Police Stations",
"url": "https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer",
"id": 3,
"zoomscale": "2000",
"forcescale": true,
"fields": {
"all": false,
"field": [
{
"name": "PD_NAME",
"alias": "PD_NAME",
"useralias": "NAME"
},
{
"name": "ADDRESS",
"alias": "ADDRESS",
"usealias": "Address"
}
]
},
"links": {}
},
{
"name": "Emergency Sirens",
"url": "https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer",
"id": 0,
"zoomscale": "2000",
"forcescale": true,
"fields": {
"all": false,
"field": [
{
"name": "SILOCAL",
"alias": "LOCAL",
"usealias": "Local"
},
{
"name": "SIADDRESS",
"alias": "ADDRESS",
"useralias": "Address"
}
]
},
"links": {}
},
{
"name": "Fire Stations",
"url": "https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/MapServer",
"id": 1,
"zoomscale": "2000",
"forcescale": true,
"fields": {
"all": false,
"field": [
{
"name": "LFD_DIST",
"alias": "DISTRICT",
"useralias": "Louiseville Fire District",
"isnumber": true
},
{
"name": "ADDRESS",
"alias": "ADDRESS",
"useralias": "Address"
},
{
"name": "NAME",
"alias": "NAME",
"useralias": "Name"
}
]
},
"links": {}
}
],
"excludelayer": [
{
"name": "Condos"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/Reference/World_Transportation/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/Reference/World_Reference_Overlay/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/Reference/World_Boundaries_and_Places/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/Reference/World_Boundaries_and_Places_Alternate/MapServer"
},
{
"url": "https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Dark_Gray_Reference/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/NatGeo_World_Map/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/Ocean_Basemap/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/USA_Topo_Maps/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/World_Physical_Map/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/World_Shaded_Relief/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/World_Terrain_Base/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Light_Gray_Base/MapServer"
},
{
"url": "https://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Dark_Gray_Base/MapServer"
}
]
},
"symbols": {
"simplemarkersymbol": {
"color": [
68,
140,
203,
153
],
"size": 8,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriSMS",
"style": "esriSMSCircle",
"outline": {
"color": [
255,
255,
255,
153
],
"width": 1,
"type": "esriSLS",
"style": "esriSLSSolid"
}
},
"picturemarkersymbol": {
"url": "images/i_info.png",
"height": "20",
"width": "20",
"type": "esriPMS",
"angle": "0"
},
"simplelinesymbol": {
"type": "esriSLS",
"style": "esriSLSSolid",
"color": [
68,
140,
203,
153
],
"width": 2
},
"simplefillsymbol": {
"color": [
68,
140,
203,
153
],
"outline": {
"color": [
68,
140,
203,
153
],
"width": 2,
"type": "esriSLS",
"style": "esriSLSSolid"
},
"type": "esriSFS",
"style": "esriSFSSolid"
}
},
"resultFormat": {
"attTitlesymbol": {
"bold": false,
"italic": true,
"underline": false,
"color": [
0,
0,
0,
1
]
},
"attValuesymbol": {
"bold": false,
"italic": false,
"underline": false,
"color": [
0,
0,
0,
1
]
}
}
}
... View more
08-08-2022
02:11 PM
|
0
|
0
|
3053
|
DOC
|
@RobertScheitlin__GISP i configured it via the configure web gui with https and the avail fields populate, but when identifying, i get no results
... View more
08-08-2022
01:23 PM
|
0
|
0
|
3059
|
DOC
|
Widget identifies the example layers as expected, but any of my layers, No results found...very odd Enterprise 10.9.1
... View more
08-08-2022
09:43 AM
|
0
|
0
|
3078
|
POST
|
from arcgis.features import GeoAccessor
import geopandas as gpd
import pandas as pd
gdf_pts = gpd.read_file(r'C:\temp\point.shp')
sdf_pts = pd.DataFrame.spatial.from_geodataframe(gdf_pts)
gdf_poly = gpd.read_file(r'C:\temp\polygon.shp')
sdf_poly = pd.DataFrame.spatial.from_geodataframe(gdf_poly )
sdf_pts.spatial.join(sdf_poly[['SHAPE']], how="left", op="intersects") This seemed to work fine for me in jupyter notebooks, are your points and polys in the same projection? have you tried other featureclasses, shapefiles, etc?
... View more
05-03-2022
12:56 PM
|
0
|
2
|
1370
|
POST
|
No problem, but as shocking as this may sound, i do believe that it was user error after all. it was just where i was appending the dataframes earlier in the code. I still marked your response as helpful and correct.
... View more
10-09-2019
12:59 PM
|
0
|
1
|
1246
|
POST
|
No, it works as i posted on all other dataframes. perhaps those docs are out of date? arcgis.features module — arcgis 1.6.2 documentation to_featureclass(location, overwrite=True)
exports a geo enabled dataframe to a feature class. So like i said, there is something odd with this dataframe that i can't seem to find
... View more
10-09-2019
11:41 AM
|
0
|
3
|
1246
|
Title | Kudos | Posted |
---|---|---|
1 | 09-12-2022 10:15 AM | |
1 | 05-11-2015 04:51 AM | |
1 | 04-01-2015 06:17 AM | |
1 | 05-07-2015 01:24 PM | |
1 | 05-07-2015 06:07 AM |
Online Status |
Offline
|
Date Last Visited |
03-05-2024
09:40 AM
|