Hexagon Geospatial
MENU

Smart M.App

Looking for answers in regards to M.Apps, M.App Exchange or M.App Studio? Smart M.App Tech Discussion board is where you can search, ask your questions and assist others by sharing your knowledge. Join the conversation, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 28
Registered: ‎11-17-2015
Accepted Solution

Problems uploading geojson files to map chest

[ Edited ]

I have a shape file which i have converted to a geojson on web. Now when i try to upload this geojson on to map chest to be part of BI Map keep getting a message "ERROR" without giving me much informatino on what that error is. Any help with the geojson? here is the geojson.

 

{type: "FeatureCollection",crs: {type: "name",properties: {name: "urn:ogc:def:crs:EPSG::3857"}},features: [{type: "Feature",properties: {WRD_ID: "W020",WRD_NO: 20,WRD_AREA: 0.03726570793,TIME_ST: "2015/09/22",ID1: 1,WardExisti: 138010,WardSurvey: 211815.79},geometry: {type: "Polygon",coordinates: [[[9119999.501987878,1904848.195822034],[9120044.63698107,1904838.2252809135],[9120102.637418848,1904828.0377023118],[9120112.157834366,1904826.40711361],[9120153.383687835,1904819.3461953246],[9120214.405343663,1904802.1187884284],[9120236.561823346,1904795.16702009920],[9120246.484121893,1904792.0538136582],[9120264.005693922,1904787.7092633254],[9120280.345339771,1904784.5622632585],[9120295.503044266,1904782.61245049],[9120302.628452685,1904782.087094467],[9120309.45417161,1904781.8605775847],[9120345.27623664,1904783.161239677],[9120349.012421837,1904782.647303919],[9120349.915496156,1904782.5230802721],[9120349.195886383,1904780.1721401755],[9120348.631340839,1904776.1377791767],[9120348.127613703,1904772.6469321726],[9120347.189401144,1904766.8769431957],[9120346.871939294,1904764.6986334517],[9120348.562440954,1904763.6721539218],[9120350.790570727,1904762.0578511718],[9120353.730036508,1904760.7489482786],[9120354.534851247,1904759.5192807796],[9120353.162236,1904756.0187255407],[9120351.255923443,1904750.5482680288],[9120348.974411333,1904747.5451250386],[9120345.11048727,1904746.0241883406],[9120339.442594063,1904745.733205821],[9120337.238071019,1904746.0156844088],[9120336.591274742,1904738.8284346638],[9120336.06760433,1904733.009366182],[9120335.059024168,1904732.1080884745],[9120333.58047132,1904732.0090935251],[9120332.216614453,1904731.5132264378],[9120331.228085686,1904727.4440129914],[9120329.687404657,1904727.6540798245],[9120327.134863837,1904727.8689367583],[9120326.679750847,1904725.7097159456],[9120325.968962742,1904720.9893934433],[9120325.29336587,1904716.9970442124],[9120324.70151955,1904712.7877009516],[9120325.802746473,1904711.5013322914],[9120326.740326678,1904710.3401671215],[9120325.819829617,1904706.090904718],[9120325.301673882,1904700.6461444527],[9120325.422519619,1904697.032531556],[9120324.41242178,1904695.1478405672],[9120322.741661595,1904692.4644034603],[9120322.48465759,1904691.8849529445],[9120322.061615294,1904690.919177033],[9120321.17116695,1904688.5638562187],[9120321.085407672,1904687.808109012],[9120319.444593027,1904682.2375869127],[9120319.530759893,1904681.0413852276],[9120318.415288566,1904678.1479399116],[9120317.445612963,1904675.8436883914 ], [ 9120314.619885186, 1904668.6171650824 ], [ 9120313.456819672, 1904664.6086981373 ], [ 9120312.577505076, 1904660.2368684763 ], [ 9120311.86496702, 1904660.3714542852 ], [ 9120303.785553487, 1904661.4648359967 ], [ 9120294.932717383, 1904662.1274024085 ], [ 9120280.275366107, 1904662.3125645304 ], [ 9120270.895369805, 1904663.817400225 ], [ 9120250.77842263, 1904667.0447544397 ], [ 9120218.0400902, 1904674.977419835 ], [ 9120191.172046548, 1904687.2419820745 ], [ 9120175.580287071, 1904694.3591963612 ], [ 9120134.652832396, 1904711.6694589457 ], [ 9120107.101374548, 1904722.565678359 ], [ 9120103.963301323, 1904723.903097744 ], [ 9120100.840875266, 1904725.4807908062 ], [ 9120097.724281967, 1904727.3033313497 ], [ 9120094.61357102, 1904729.3710805033 ], [ 9120091.508859094, 1904731.6843406353 ], [ 9120088.44528847, 1904734.2144622186 ], [ 9120086.389197173, 1904736.8851594303 ], [ 9120085.342782749, 1904738.1186084538 ], [ 9120085.236377247, 1904738.0223329077 ], [ 9120084.953713113, 1904737.5305603137 ], [ 9120069.375054033, 1904690.0449976807 ], [ 9120065.70911312, 1904691.5069057608 ], [ 9120053.679332327, 1904696.3041504982 ], [ 9120051.722008225, 1904697.0846929152 ], [ 9120047.730007557, 1904699.339042377 ], [ 9120043.849634696, 1904701.774482376 ], [ 9120040.090694813, 1904704.3854711151 ], [ 9120036.453124166, 1904707.1720522826 ], [ 9120032.93686597, 1904710.1342777777 ], [ 9120029.541872054, 1904713.2722059048 ], [ 9120026.268104037, 1904716.585899286 ], [ 9120023.107372055, 1904720.0844568922 ], [ 9120020.369461289, 1904722.8207650408 ], [ 9120017.808862932, 1904725.5660256585 ], [ 9120015.417892754, 1904728.3278401506 ], [ 9120013.196505345, 1904731.1061690676 ], [ 9120011.144645333, 1904733.9009779263 ], [ 9120009.26225, 1904736.7122398692 ], [ 9120007.54923458, 1904739.539938674 ], [ 9120006.000709077, 1904742.392941587 ], [ 9120002.561235683, 1904748.3162948668 ], [ 9119998.992472364, 1904753.44823696 ], [ 9119995.295652619, 1904757.78422651 ], [ 9119991.469296385, 1904761.3234503006 ], [ 9119987.512181846, 1904764.06408982 ], [ 9119983.424211172, 1904766.0032366083 ], [ 9119979.208967494, 1904767.1371933543 ], [ 9119976.732920807, 1904767.3566923842 ], [ 9119977.323692372, 1904769.4928346586 ], [ 9119978.18932155, 1904772.2663751633 ], [ 9119978.92398653, 1904775.3648570024 ], [ 9119988.665871507, 1904811.1110956566 ], [ 9119997.147903088, 1904839.5200127622 ], [ 9119998.896549627, 1904845.7156576682 ], [ 9119998.968381692, 1904846.0099161293 ], [ 9119999.501987878, 1904848.195822034 ] ] ] } }, { type: "Feature", properties: { WRD_ID: "W018", WRD_NO: 18, WRD_AREA: 0.03989815082, TIME_ST: "2015/09/22", ID1: 2, WardExisti: 28924, WardSurvey: 43100.34 }, geometry: { type: "Polygon", coordinates: [ [ [ 9120456.685631385, 1904765.7747104634 ], [ 9120468.438614858, 1904760.3692930639 ], [ 9120512.985082142, 1904753.051943645 ], [ 9120522.512307566, 1904751.4620683896 ], [ 9120524.248590099, 1904751.1723222306 ], [ 9120574.46559345, 1904741.7812001938 ], [ 9120574.707888868, 1904741.7358880448 ], [ 9120578.077379098, 1904740.8433809169 ], [ 9120631.327235613, 1904726.7385404925 ], [ 9120645.966727028, 1904724.0304667968 ], [ 9120648.082991224, 1904723.6389906586 ], [ 9120648.456040358, 1904723.5699823177 ], [ 9120646.626589293, 1904692.6908021786 ], [ 9120644.724322995, 1904680.2509909929 ], [ 9120642.28441637, 1904668.7364269162 ], [ 9120637.948175559, 1904648.272541364 ], [ 9120631.207076233, 1904618.971134269 ], [ 9120626.654965274, 1904589.577626701 ], [ 9120616.18746046, 1904558.647630478 ], [ 9120597.181586485, 1904564.9456390922 ], [ 9120553.73618873, 1904585.07633775 ], [ 9120547.086229715, 1904588.713930887 ], [ 9120526.116391791, 1904600.1846222111 ], [ 9120514.798588386, 1904604.9110384828 ], [ 9120510.758999163, 1904607.6114146074 ], [ 9120507.681676565, 1904610.126544855 ], [ 9120507.615674267, 1904610.1804892668 ], [ 9120506.285917215, 1904611.2861771323 ], [ 9120502.01415977, 1904614.9331318792 ], [ 9120496.593005367, 1904618.7070573447 ], [ 9120495.335522579, 1904619.5824511212 ], [ 9120490.958800284, 1904621.414597397 ], [ 9120480.546465749, 1904624.8546539168 ], [ 9120473.133686833, 1904627.24001308 ], [ 9120472.701029843, 1904627.413384247 ], [ 9120465.305614388, 1904629.6349366158 ], [ 9120459.395691756, 1904631.9367073535 ], [ 9120452.502801374, 1904635.1245177404 ], [ 9120448.33597864, 1904636.7597451226 ], [ 9120442.386459613, 1904638.401704192 ], [ 9120433.8562602, 1904639.8978100284 ], [ 9120418.341457097, 1904642.3762391014 ], [ 9120413.043478794, 1904643.2225678337 ], [ 9120383.554640848, 1904649.2995259122 ], [ 9120347.35780859, 1904655.5486008078 ], [ 9120315.600303985, 1904659.6659150727 ], [ 9120312.577505076, 1904660.2368684763 ], [ 9120313.456819672, 1904664.6086981373 ], [ 9120314.619885186, 1904668.6171650824 ], [ 9120317.445612963, 1904675.8436883914 ], [ 9120318.415288566, 1904678.1479399116 ], [ 9120319.530759893, 1904681.0413852276 ], [ 9120319.444593027, 1904682.2375869127 ], [ 9120321.085407672, 1904687.808109012 ], [ 9120321.17116695, 1904688.5638562187 ], [ 9120322.061615294, 1904690.919177033 ], [ 9120322.48465759, 1904691.8849529445 ], [ 9120322.741661595, 1904692.4644034603 ], [ 9120324.41242178, 1904695.1478405672 ], [ 9120325.422519619, 1904697.032531556 ], [ 9120325.301673882, 1904700.6461444527 ], [ 9120325.819829617, 1904706.090904718 ], [ 9120326.740326678, 1904710.3401671215 ], [ 9120325.802746473, 1904711.5013322914 ], [ 9120324.70151955, 1904712.7877009516 ], [ 9120325.29336587, 1904716.9970442124 ], [ 9120325.968962742, 1904720.9893934433 ], [ 9120326.679750847, 1904725.7097159456 ], [ 9120327.134863837, 1904727.8689367583 ], [ 9120329.687404657, 1904727.6540798245 ], [ 9120331.228085686, 1904727.4440129914 ], [ 9120332.216614453, 1904731.5132264378 ], [ 9120333.58047132, 1904732.0090935251 ], [ 9120335.059024168, 1904732.1080884745 ], [ 9120336.06760433, 1904733.009366182 ], [ 9120336.591274742, 1904738.8284346638 ], [ 9120337.238071019, 1904746.0156844088 ], [ 9120339.442594063, 1904745.733205821 ], [ 9120345.11048727, 1904746.0241883406 ], [ 9120348.974411333, 1904747.5451250386 ], [ 9120351.255923443, 1904750.5482680288 ], [ 9120353.162236, 1904756.0187255407 ], [ 9120354.534851247, 1904759.5192807796 ], [ 9120353.730036508, 1904760.7489482786 ], [ 9120350.790570727, 1904762.0578511718 ], [ 9120348.562440954, 1904763.6721539218 ], [ 9120346.871939294, 1904764.6986334517 ], [ 9120347.189401144, 1904766.8769431957 ], [ 9120348.127613703, 1904772.6469321726 ], [ 9120348.631340839, 1904776.1377791767 ], [ 9120349.195886383, 1904780.1721401755 ], [ 9120349.915496156, 1904782.5230802721 ], [ 9120417.216079637, 1904773.2653484754 ], [ 9120450.012025109, 1904768.8440237513 ], [ 9120454.273915084, 1904766.883903071 ], [ 9120456.523772275, 1904765.8491524481 ], [ 9120456.685631385, 1904765.7747104634 ] ] ] } } ] }

Vishnu

Highlighted
Contributor
Posts: 28
Registered: ‎11-17-2015

Re: Problems uploading geojson files to map chest

[ Edited ]

Figured the problem the attribute were not formatted correct, missed the double quotes on them "type".

Technical Evangelist
Posts: 132
Registered: ‎08-05-2015

Re: Problems uploading geojson files to map chest

Indeed, that was just a javascript object, not JSON. To create JSON from javascript object you can call

 

JSON.stringify(obj, null, 4)

to have it pretty-printed or just

JSON.stringify(obj)

to have it without whitespace.

 

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify

Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.