Select to view content in your preferred language

Parks and Rec Finder : Switch to SDE Connection

3180
8
Jump to solution
08-22-2014 07:20 AM
BrianO_keefe
Regular Contributor II

I've got a blank LocalGovernment SDE database. Ready to go.

I decided to start with the Parks and Recreation Finder for ease of shifting into LGDM.

But when I downloaded this package, the MXD is already linked (with HUNDREDS of feature classes) to a LocalGovernment.gdb file?

 

Do I have to go in, individually, and change each layers pointer to my SDE connection? Or is there some master switch that I can run that will change out the GDB for my SDE?

 

Message was edited by: Brian O'keefe, Cleaned up for clarification

0 Kudos
1 Solution

Accepted Solutions
JakeSkinner
Esri Esteemed Contributor
0 Kudos
8 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Brian,

You can right-click on the MXD in the catalog window > Set Data Source.  The MXD that contains the hundreds of layers is actually the basemap.  This can take some time to create since you have to populate all of the feature classes in the LGIM.  If your eager to stand up the app, what I recommend to customers is to use one of ESRI's basemaps in the application.  When your configuring the config file for the app, you can simply specify one of the basemap's REST URLs.

Now, you will just need to update the 2 layers in the Parks.mxd, publish this as a service, and you will be able to stand up the app.

BrianO_keefe
Regular Contributor II

I'm getting weird errors.

Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://maps.cityoftulsa.org/jsdev/ParksFinder/proxy.ashx?http://services.arcgisonline.com/ArcGIS/res...

It 'basically' won't load the esri maps? I did like you suggested tho, I used online maps for Basemaps instead of trying to corral some sort of makeshift basemap scenario. But it seems to be hanging up only on the http://maps.cityoftulsa.org/jsdev/ParksFinder/proxy.ashx?http://services.arcgisonline.com/ArcGIS/res...

Any ideas?

0 Kudos
JakeSkinner
Esri Esteemed Contributor

Did you configure the proxy?

Configure application - Get Started | ArcGIS for Local Government

Also, did you convert the application files to an application?

Publish application - Get Started | ArcGIS for Local Government

0 Kudos
BrianO_keefe
Regular Contributor II

Ok.

So I went back and I'm walking through the steps again.

My Map URL is: http://maps.cityoftulsa.org/ParksFinder/

I've even turned on my Geometry service on our server.

But I keep on getting the following error...

Unable to load reference overlay layer

Which, I've discovered, seems to be the Trails layer. Since I don't have the data for the GeneralPurpose.mxd nor the ImageryReferenceOverlay.mxd I am using ArcGIS options as follows...

BaseMapLayers

> topoMap > Topographic > http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer

> parcelMap > Streets > http://server.arcgisonline.com/arcgis/rest/services/USA_Topo_Maps/MapServer

> imageMap > Imagery > http://server.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer

Operational Data Settings

FacilityLayer > http://t1itpappgis02:6080/arcgis/rest/services/LGDM/Parks/FeatureServer/0

CommentsLayer > http://t1itpappgis02:6080/arcgis/rest/services/LGDM/Parks/MapServer/1

ReferenceOverlayLayer > http://t1itpappgis02:6080/arcgis/rest/services/LGDM/Trails/MapServer

But the error doesn't go away... I'm feeling kinda lost...

0 Kudos
JakeSkinner
Esri Esteemed Contributor

In the config.js file, go to line 144 and change the DisplayOnLoad to 'false'.  Ex:

ReferenceOverlayLayer: {

        ServiceUrl: "http://server1/arcgis/rest/services/Trails/MapServer",

        DisplayOnLoad: false

    },

0 Kudos
BrianO_keefe
Regular Contributor II

Done.

I'm getting the following error in my JS Console...

Failed to load resource: the server responded with a status of 500 (NameResolutionFailure) http://maps.cityoftulsa.org/ParksFinder/proxy.ashx?http://t1itpappgis02:6080/arcgis/rest/services/LG...

Confused.

0 Kudos
JakeSkinner
Esri Esteemed Contributor

Did you convert the app files to an application in IIS?

0 Kudos
BrianO_keefe
Regular Contributor II

Fixed it!

I was using an internal server path... switched over and now it's up...

Of course, now I am getting a new error... lol. Ugh!

( Thanks for the help, by the way )

0 Kudos