|
IDEA
|
11-15-2021
11:06 PM
|
0
|
0
|
2741
|
|
IDEA
|
Ran into this old idea. Since there are some recent enhancements made in that area, I thought I should put that info here for future readers, and close it. as you know as per REST API specs (until we made some amendments in recent releases), date/time values are passed around in UTC. to make sure map/feature services return correct date/time values in a query response by applying the correct time zone conversion, you must set the Date Fields Time Zone in service properties. you can do that in the Server Manager site or in sharing/publishing pane from ArcGIS Pro or ArcMap. that's said there are some cases where you can't apply a single time zone when you have date/time values from multiple time zone. Also, it is rare but it does happen -- due to lack of historic time zone support in Windows Time libraries, you don't get the correct results. that is when you can set the service time zone to "Unknown" please read this blog article for more info: https://bit.ly/3nm3pLi
... View more
11-15-2021
11:05 PM
|
0
|
0
|
1672
|
|
POST
|
hmm... I assume you have this help check option checked, right? anyway, I think it is probably better to open a ticket and have an analyst take a look at this.
... View more
11-04-2021
01:35 PM
|
0
|
0
|
5279
|
|
POST
|
@KeithOlsen can you pls check if switching your map service Instance Type to 'dedicated' help?
... View more
11-04-2021
01:17 PM
|
0
|
1
|
5284
|
|
POST
|
@DavidPike can you pls check if your map service root resources has timeInfo? https://sampleserver6.arcgisonline.com/arcgis/rest/services/SpatioTemporalAggregation/Tornadoes_FeatureBinning/MapServer?f=pjson
... View more
10-25-2021
02:16 PM
|
0
|
1
|
1640
|
|
POST
|
Just as FYI: both map service (aka map image layer) and feature service query operations follow the same specs. That is why you can add a feature layer in your web map off a map service or a feature service. When you add a feature layer off a map service, Editing is the only capability you won't have. here is an example of a map service query request with polygon spatial filter: https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0/query?geometry=%7B++%22rings%22+%3A+%5B%5B%5B-50%2C10%5D%2C%5B-50%2C50%5D%2C%5B10%2C50%5D%2C%5B10%2C-50%5D%2C++++++++++++++%5B-50%2C10%5D%5D%5D%2C++%22spatialReference%22+%3A+%7B%22wkid%22+%3A+4326%7D%7D&geometryType=esriGeometryPolygon&spatialRel=esriSpatialRelIntersects&returnGeometry=true&f=html
... View more
10-25-2021
10:01 AM
|
0
|
0
|
12155
|
|
POST
|
hmm... You might see performance issue with very large tables since they don't have any spatial index and Pro/map service makes queries with spatial filter. If I recall correctly, XY Event Layer actually does try to mimic the spatial filter using x/y coordinate fields -- something like where x_coordinate >= xmin and x_coordinate <= xmax and y_coordinate >= ymin and y_coordinate <= ymax. That said, when those x/y coord fields don't have indices, I'm not sure how the query will perform.
... View more
10-20-2021
02:54 PM
|
1
|
0
|
3452
|
|
POST
|
Thanks @cle444 . I'm glad it worked for you. I don't have answers for all the questions you have asked at least not at the detail level you hoped for. Let me try. is it a Pro issue rather than the Enterprise issue? The bug you ran into is a map service bug on the Enterprise side. Is the 'Make XY Event Layer' a helper method that can handle different database technologies? If I recall correctly, it is not. For the SQL server, what you provided is how 'Make XY Event Layer' works behind the scene? No, it doesn't. 'Make XY Event Layer' is a complete different implementation. What is the main difference between the two layer types? If I understands correctly, a 'XY Event Layer' reads rows from the table and generates geometries using x/y coordinates on the client side. Whereas the approach that I provided generates the geometries at the database level. Pro/map service simply gets the geometries (just like for any other query layer or feature class) and draws them. In what scenarios you would use a query feature class layer instead of an XY Event layer, and vice versa? Unfortunately I don't have any answer for this 😞 I need to think through, if I find any I will reply back here. As you might have figured already, functionaly they are pretty similar. Of course one draw back for the query-layer approach is that you need to know sql and database specific spatial functions. Itonly works when your data are stored in an enterprise database. This approach wouldn't work for file gdb or shape files etc. hope you will find this helpful!
... View more
10-20-2021
08:27 AM
|
2
|
1
|
7767
|
|
POST
|
@cle444 I was able to reproduce this issue. As I mentioned before, it appears to me as a bug. I will log a bug for us internally. As a workaround, may I suggest the following. In fact, in some case, I don't consider that as a workaround rather a solution. use this sql query (or similar query depending on your underlying database flavor) to generate geometries on the fly from x,y coordinates. as you know it is functionally equivalent to XY Event Layer in many cases. It is just that geometries are generated at the database level, instead of in Pro. -- SQL Server
select
objectid,
geometry::Point(x_coord, y_coord, 3857) as shape_derived,
date_time_field
from myTable
WHERE aFld = 'value' Please let me if this is acceptable to you.
... View more
10-19-2021
12:16 PM
|
2
|
5
|
5120
|
|
POST
|
I'm glad it worked 🙂 It sounds strange to me that the GetLayoutTemplateInfo task actually loads each templates each time it is called. We don't want to save any information in the memory. So that whenever you make any changes in those templates, those templates' updates get picked up in the next call. Please note, client app such as Map Viewer or WAB print widgets don't make calls to this task very often. It should only make requests when you open widget first time in a session,
... View more
10-19-2021
10:00 AM
|
0
|
0
|
2320
|
|
POST
|
@DavidL Can you pls check if you have any layers in your .pagx files? GetLayoutTemplateInfo task basically opens/loads each .pagx files in the memory (just like what would happen when you double-click to open them in ArcGIS Pro) and then read information off the layout.
... View more
10-19-2021
07:55 AM
|
2
|
1
|
2328
|
|
POST
|
@LLCCG I just tried and it worked for me. Please check this out: https://arcg.is/0vumXi All I did was this: - I added the map image layer first (https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer) - then added the feature layer using this url https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0 please let me know if I misunderstood anything.
... View more
10-18-2021
12:06 PM
|
0
|
0
|
980
|
|
POST
|
@cle444 It appears a bug to me. Would you mind give me a bit more details on the xy event layer? Is this how you created that layer: add a non-spatial table (non-registered to a geodatabase) from an enterprise database to a map. that makes the source of this table a query layer then you used Make XY Event Layer geoprocessing tool to create a xy event layer
... View more
10-13-2021
04:31 PM
|
0
|
1
|
5215
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2026 04:42 PM | |
| 2 | 05-11-2026 04:59 PM | |
| 1 | 04-16-2026 01:37 PM | |
| 1 | 03-06-2026 04:33 PM | |
| 1 | 03-05-2026 03:22 PM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|