POST
|
Hello everyone, I have another issue in context of Python Toolboxes and published Geoprocessing Service. My parameter settings for enabled/disabled work fine in local development and ArcGIS Pro 2.8 but as soon as I publish them to ArcGIS Server and consume this service back in ArcGIS Pro, all my fields are visible/enabled all the time and functionality inside updateParameters() function don't seem to get activated. Is this different behavior documented anywhere? A developer / user would expect the desktop tool and resultings ervice to behave the same. Would be great to get some feedback, thanks.
... View more
08-10-2022
06:31 AM
|
0
|
1
|
231
|
POST
|
Hello, I have an ugly behavior that is well known from web / HTML input scenarios where a text input field is triggering onChange only if the user unfocus the field of explicitly confirm the value with Enter. But often the developer needs to handle a user input right when it ocures. So in this case updateParameters is only triggered when I loose focus on my GPString input field not when the user writes new characters. Is it possible to get this onInput event? I need to show other fields based on the input text. Thank you for your help!
... View more
08-10-2022
03:57 AM
|
0
|
0
|
172
|
POST
|
The problem was I registered the GPService item with a url like: /MyGpService/GPServer/MyTool This way it also asked for credentials and created the item but following toggle-button was not active: I had to use url of the service level item: /MyGpService/GPServer
... View more
07-22-2022
02:11 AM
|
0
|
0
|
260
|
POST
|
Hello, I've created a small GeoprocessingService that pulls data from an external service and returns a GPFeatureLayer. This way results are rendered well in Pro and I was able to publish this Service to our ArcGIS Server as private. Next I registered the service to our portal with some user providing credentials to private service => worked. Now I open ArcGIS Pro and sign in to Portal with the same user. I see the Tool in my contents but I can't execute the tool. If I double click the tool, no form with input fields opens up, just an empty panel. How can I troubleshoot this? Thank you for your help!
... View more
07-21-2022
11:10 PM
|
0
|
1
|
412
|
POST
|
With GPFeatureLayer as outpt datatype my ArcGIS Pro adds the local processing result as a new layer. But for some reason that I don't know (are there logs, console, anything???) I'm not able to publish my tool to the server. ANLYZE and PUBLISH buttons are disabled without any hint whats wrong. Again my tool runs successfully in ArcGIS Pro. Pls Esri help the developer a little bit.
... View more
07-20-2022
06:57 AM
|
0
|
1
|
782
|
POST
|
Nobody an idea? No one using Python geoprocessing services that return features to clients like ArcGIS Pro? From my understanding this should be a common task. My process successfully creates a feature class from my third party data but I'm still unable to return this feature class in a way from my service, so that clients like ArcGIS Pro add them as a new layer to the active map. search_results = arcpy.Parameter(
displayName="Search Results",
name="search_results",
datatype="GPFeatureRecordSetLayer",
parameterType="Derived",
direction="Output")
srs_etrs89 = arcpy.SpatialReference(25832)
search_fc = arcpy.CreateFeatureclass_management(scratch_db_path,
"search_results", "POLYGON",
"", "DISABLED", "DISABLED", srs_etrs89)
fields = ['text', 'typ', 'score', 'bbox'] # Only use common bkg fields
search_results_cursor = None
for index, feature in enumerate(result_features, start=0):
if index == 0:
for field in fields:
arcpy.AddField_management(search_fc, field, "TEXT")
fields.append('SHAPE@')
search_results_cursor = arcpy.da.InsertCursor(search_fc, fields)
self.write_feature_row(search_results_cursor, feature, srs_etrs89)
del search_results_cursor
parameters[1].value = search_fc
... View more
07-20-2022
06:26 AM
|
0
|
2
|
783
|
POST
|
Hi, I actually want to create a Geoprocessing Service published from a Python Toolbox and ArcGIS Pro 2.8.3. From a third party service I get geojson in my server-side process which I can transform into esri json or Features / FeatureLayer. But from there, how do I provide these features as output of my geoprocessing service? What kind of output data format do I have to use? Docu says the server only supports a few data formats like GPFeatureRecordSetLayer which expects a special json input. But how can I automatically get such a json from my features? search_results = arcpy.Parameter(
displayName="Search Results",
name="search_results",
datatype="GPFeatureRecordSetLayer",
parameterType="Derived",
direction="Output") Esri Json doesn't seem to work. esri_search_data = r"{0}\search_data.json".format(arcpy.env.scratchFolder)
arcpy.FeaturesToJSON_conversion(search_data_path, esri_search_data)
esri_data = self.read_textfile(esri_search_data)
parameters[1].value = esri_data As a result the client should create a feature layer. My geoprocessing service should be used mainly by ArcGIS Pro clients. Optionally it would be great if the output could be used by esri web clients as well like Esri JS API. Does anybody know how this can be achieved?
... View more
07-18-2022
06:18 AM
|
0
|
3
|
890
|
POST
|
Hi @RobertBorchert, thx for the reply. Maybe I was not clear enougth. I know I can set tags to search for services and datasets in the portal but my question is about searching the data itself, the datasets attributes and datasets behind the services. My question is, how do large organizations with a lot of data implement an efficient search over their complete data pool? The portal itself doesn't seem to provide such a feature. Are there any Esri solutions for searching data?
... View more
05-26-2022
10:29 PM
|
0
|
0
|
381
|
POST
|
Hello, I have a more general question. At some point I have all my geodata and more connected to my Portal for ArcGIS and I could imagine that searching for data is one of the most important tasks for many organizations. With Portal I can easily search for portal items but what users really need is to search for specific data or features. Are there any good approaches for a portal based centralized search engine on the data itself? If not I would try to solve it in a 2 step process. First let user select from a list of categories/topics based on my portal item tags. Then use the items REST query functionality (if supported) to search for distinct features. This can be done async if I have to search over multiple datasets. Would that be an adequate solution? What if I have a lot and really large content?
... View more
05-25-2022
03:20 AM
|
0
|
2
|
556
|
POST
|
Hello @AndyGup , in addition to my mail from Wednesday. If I package the esri assets with my package, then the target workspace/project will first of have them twice in node_modules because @arcgis/core will be installed as dependency of my project anyway and will ship these assets as well and furthermore my package will bring the assets again to node_modules. Also I don't win anything. The consuming app will still be responsible to serve the assets and tell the library where it serves them. Really I don't see how I can achieve that my library loads and set's up esri on its own. The consuming app should not be rersponsible for that :(. We need a function inside @arcgis/core that loads CSS at runtime from our server like loadCss(). I think its a common requirement to use arcgis/core in an independent module/library where mapping is only a small part of a much bigger application. Isn't it possible that you and your team only set up a basic scenario for that and tell me the best approach? I'm not asking for any specific API functionality. This is something I can figure out myself. It's about the usability and integration of your overall package and the question if we can use it for our projects. The fallback would be to use esri/leaflet but I really would like to stick to JS api because of the api design and functionality.
... View more
04-01-2022
04:09 AM
|
0
|
0
|
513
|
POST
|
Hi @AndyGup, the library / package is for internal usage. It's meant to encapsulate the Esri JS API viewer with a standard toolset and configuration. Other developers should then only consume the components. Thank you for that useful hint. I will definetly try that out! But I'm still struggling a little bit with including all the assets in my package. Is there a way to pull assets from our own server similar to esri-loader? I understand that the ESM sources are meant to be compiled in this case although it increases built time a lot but for CSS it would be enouth to have an option similar to loadCss() where I just point to a main.css on our server. Thank you again for your help.
... View more
03-30-2022
08:00 AM
|
0
|
0
|
521
|
POST
|
Hi, I'm currently trying to package my Angular App with local assets but I'm struggling with the relative css paths :(. This is an example of ..\themes\base\widgets\_Spinner.scss The relative path ../base/images seems to be wrong. Because with ../ I'm out of widgets but still inside base folder. This matches my error messages: where it's looking for base\base\... Am I missing something? I'm using arcgis/core@4.23.0. Any help would be much appreciated.
... View more
03-28-2022
03:10 AM
|
0
|
1
|
569
|
POST
|
Hi, I'm in the situtation that I want to create an Angular publishable library with Esri JavaScript logic. Other colleagues should be able to install my npm package and esri assets/css should work out of the box. CDN is not a problem but I can't figure out the best way to ship esri assets with my library and how I can configure css/assets inside my library so that I can do both: a) use my library at development time inside my angular workspace and its app projects directly b) or in another workspace with the npm package. Does anybody have experience in that?
... View more
03-25-2022
02:10 AM
|
0
|
4
|
566
|
Title | Kudos | Posted |
---|---|---|
1 | 06-04-2018 11:48 PM | |
1 | 06-04-2018 06:16 AM | |
1 | 10-29-2021 01:41 AM | |
1 | 01-22-2018 07:22 AM | |
1 | 09-28-2018 12:42 AM |
Online Status |
Offline
|
Date Last Visited |
08-15-2022
08:13 AM
|