Giter Club home page Giter Club logo

Comments (7)

DavidSpriggs avatar DavidSpriggs commented on June 12, 2024

You need to update the wkid of the initialExtent to the proper projection (102100 is web mercator). Look here to find the wkid (well known ID) of your projection: http://developers.arcgis.com/en/javascript/jshelp/ref_coordsystems.html (look in the projected list). Looks like it might be 26717. Another way to find this would be to look at your published map service in the services directory page of your ArcGIS Server. It will tell you the spatial reference and wkid of your map service.

from cmv-app.

DavidSpriggs avatar DavidSpriggs commented on June 12, 2024

Also, make sure the coords are in your projection.

from cmv-app.

geolectric avatar geolectric commented on June 12, 2024

Well, I think the problem is that the data is projected in UTM Zone 17N US Ft when it's usually in meters

So when the data is changed to US Foot:
us_foot

It puts the projection under Custom and the WKID goes away.
us_foot2

The WKID you mentioned above (26717) is for UTM Zone 17M in Meters.

I'm not sure what to do

from cmv-app.

DavidSpriggs avatar DavidSpriggs commented on June 12, 2024

Can you send me the url to the map service you are using for the basemap?

from cmv-app.

DavidSpriggs avatar DavidSpriggs commented on June 12, 2024

The url is not working for me. Is that an externally accessible url or internal only?

from cmv-app.

DavidSpriggs avatar DavidSpriggs commented on June 12, 2024

Yes, you have a custom projection. In this case you would set the spatial reference to the "wkt" (well known text). Get the well wkt from the services directory (the spatial reference string) and then create the spatial reference as described in the documentation here:
http://developers.arcgis.com/en/javascript/jsapi/spatialreference.html#spatialreference3

Your wkt is:
'PROJCS["NAD_1927_UTM_Zone_17N",GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",1640419.947506562],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-81.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Foot",0.3048]]'

from cmv-app.

geolectric avatar geolectric commented on June 12, 2024

It worked! I realize this was probably out of scope but I really appreciate you taking the time to help.

from cmv-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.