I'm relatively new to mapping. I have some data which I would like to save using the GeoJson format and display on Google Maps (Javascript API v3). This works for my shapes which are in [Lng,Lat] format. I also have some features (Line String) which are in [X,Y] format, where the units of X,Y are meters. I have an origin point which is in [Lng,Lat] format.
I've read a little bit about using Tiles for X,Y coordinates, but if I understand correctly, my X,Y units are pixels, not meters.
Currently I have been saving my X,Y data twice; once as X,Y and once as Lng,Lat (I use google maps geometry tools to translate the X,Y points to Lng,Lat). Is this my only option, or can I save the data in X,Y [meters] with an origin and have it display properly on the map?
Also, the points are 'relatively' close for geo data. The highest X,Y values would be around 3000m.
Edit: Adding (truncated) Sample Data
XY(Z) data with origin. (data is LineString, origin is Point)
{
"type": "FeatureCollection",
"features": [
{
"geometry": {
"type": "LineString",
"coordinates": [
[
717,
1246.3812,
0
],
[
703.1146,
1227.8316,
0
],
[
688.9295,
1209.5377,
0
],
[
838.4507,
1426.9744,
0
]
]
},
"type": "Feature"
},
{
"geometry": {
"type": "Point",
"coordinates": [
-121.76410900803,
36.575784480854
]
},
"type": "Feature"
}
]
}
Same data as above converted to Lng,Lat GeoJson:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[
-121.7560874662,
36.58698064498
],
[
-121.75624282811,
36.586814021396
],
[
-121.75640154205,
36.586649694817
],
[
-121.7560874662,
36.58698064498
]
]
}
}
]
}
Clarification, I need the XYZ data for processing server-side (and I want to save those XYZ coordinates for future use), but I want to display the data back on the Google Map, do I need to convert it back to Lng,Lat (2nd data set shown) or can I display the XY(Z) data w/ Lng,Lat origin directly by referencing some specific CRS?