Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I need to convert XY values in a textfile which the user uploads into point features(not graphics) in a feature service using ArcGIS Server Javascript API. The ARCGIS server version is 10.1 and API version is 3.5

Thanks Deepika

share|improve this question
    
Welcome to SE.GIS forum. Did you tried to search on Google ? –  Sunil Jul 23 '13 at 6:31

2 Answers 2

I think this is what you are looking for: https://developers.arcgis.com/en/javascript/jssamples/exp_dragdrop.html

share|improve this answer

I would read the file, push the X/Y values in to an two dimensional array.
In a for (foreach) loop, i'd create a point feature for every X/Y value pair.

for(i in array){
    var point = new esri.geometry.Point(array[i][0], array[i][1])
    // do something with the point here
}

At the comment, you can process the point. For example, you can add them to the featureSrevice via the "query task".

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.