Select - Buffer Workflow Mixed Projections in Site
I have just configured a Search by Parcel Number Workflow that will take a given Parcel Number prompt for a distance and than apply the buffer. I have spent a good amount of time trying to figure out why I was zooming to my parcel but my parcel was somewhere way off in never land. After hours of debugging I discovered that it was because my site has two services one with our local system of 2226 mixed with another in the 102100 system. We really would like to offer our users the ability to view the service http://imaps.dfg.ca.gov/ArcGIS/rest/services/Base_Remote_Sensing/NAIP_2010/ImageServer with our local data in the same site. Is there someway to configure the site so that it will respect the 2226 as our basis for selection etc.
Thank You.
Louie Rowley
Napa County GIS - INFO SYSTEMS SPECIALIST II
-
Louie,
This is just a guess but take a look at your rest sites folder, for example:
http://servername/Geocortex/Essentials/DEV1/REST/sites
select your site then check to see which service is being referenced as the Primary Map Service. By Default, its the bottom one, which is probably your imagery service from a different source. Check the coordinate system - it probably is 102100.
So edit the site file and set the PrimaryMapServiceID to the ID of the local service (probably the top one)
PrimaryMapServiceID string optional The ID of the Map Service that should be used as the base settings for the Map. Map properties such as extent and spatial reference will be set from the Primary Map Service. If not specified, the last Map Service defined in the XML will be used as the Primary Map Service.
<Map FullExtent="364105.449647058,94200.2655497268,610333.574647058,301550.265549727" InitialExtent="356216.862052628,81246.9726012716,621565.019747033,304698.052764981" PrimaryMapServiceID="0">Open the site in rest manager and then save it. Then check out the rest site - to verify that it changed the primary map service
Example of the site results where it just sets the last service to the Primary Map Service:
RGCIP/MNDOT_RGCIP (2) (url=http://servername/arcgis/rest/services/RGCIP/RGCIP/MapServer)
Layers:
Rail Grade Crossings (0)
Total Train Volumes (1)
Train Speeds (2)
Rail Routes (3)
Traffic Volume AADT (4)
MNDOT Basemap (1) (url=http://servername/arcgis/rest/services/CACHED/MNDOT_BASEMAP/MapServer)
Imagery (Primary Map Service) (0) (url=http://servername/arcgis/rest/services/CACHED/BASEMAP_IMAGERY/MapServer)Coordinate System: NAD_1983_UTM_Zone_15N (WKID: 26915)
Hopefully that helps. Also when using buffer the following forum post is good - Tjibbe Wubbels has a point buffer that works and is setting spatial references in the buffer process. When you get a chance, post your workflow. It would be lovely to see how it works too.
0 -
Sonia,
Thank you for your reply. I ended up going through support to figure out the issue and I am kind of embarrassed by the solution. I had been looking around for someplace to designate a "Output Spatial Reference". Support pointed me to the Workflow designer where I had completely missed that there are a bunch of properties for the "Query Task" that show up in the properties on the Right but do not show up in the visual representation. After supplying the spatical reference my issue has been resolved.
The PrimaryMapServiceID has me intrigued. When I get a chance I will try that out too.
Louie
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer