Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

I think this is what you are looking for:

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


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.