Select to view content in your preferred language

Coordinate system and create WKID

952
4
12-15-2011 12:13 AM
MaxNos1
Emerging Contributor
Is it possible to create a coordinate system directly in the code of config files in flex viewer? I have a specific coordinate system and I have no a WKID. I want to write the code for Example
PROJCS["Anguilla_1957_British_West_Indies_Grid",GEOGCS["GCS_Anguilla_1957",DATUM["D_Anguilla_1957",SPHEROID["Clarke_1880_RGS",6378249.145,293.465]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",400000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-62.0],PARAMETER["Scale_Factor",0.9995],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]
directly in flexviewer files. Is it possible?
Tags (2)
0 Kudos
4 Replies
IvanBespalov
Frequent Contributor
Max,
i think yes.

Search for "wkt" in this help document

For example: <map> tag has attribute "wkt" in main configuration file.

If you want to create spatial reference in AS3 code: read this doc.
0 Kudos
MaxNos1
Emerging Contributor

For example:   <map> tag has attribute   "wkt" in main configuration file. 

Thank you very much. Maybe you have an example of the syntax of this line? <map wkt="...">. IF I insert a original code of my coordinate system to this this place, I get the error when run a application...
0 Kudos
IvanBespalov
Frequent Contributor
Max,
1 - may be this helps you - http://validator.w3.org/#validate_by_input

1.1 - Double quotation marks are delimiters for each attribute in XML tag, try to replace them by single quotation marks

GEOGCS['OSGB_1936',DATUM['OSGB_1936' ...

2 - no, I do not have any sample

3 - if you have any error, and you do not know how to solve the problem - describe it (your code, exception message, error code .... anything if you waiting for help)

Good luck.
0 Kudos
MaxNos1
Emerging Contributor

1.1 - Double quotation marks are delimiters for each attribute in XML tag, try to replace them by single quotation marks
GEOGCS['OSGB_1936',DATUM['OSGB_1936' ...

WORK!!!! BIG THANK!!!! )
0 Kudos