Help needed publishing to maps engine please!

I've successfully synced some of the info to the vector table but fore some reason the Location column is blank? I've confirmed selecting as geopoint when publishing from odk aggrigate. I'd like to get this great tool working, found some of the steps to be outdated. thanks!

You need to give much more context as to what you are doing or trying to do
in order for anyone to understand your problem and/or answer your question.

··· On Mon, Nov 10, 2014 at 10:45 PM, wrote:

I've successfully synced some of the info to the vector table but fore
some reason the Location column is blank? I've confirmed selecting as
geopoint when publishing from odk aggrigate. I'd like to get this great
tool working, found some of the steps to be outdated. thanks!

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

ok, thank you for the response. More details are, I followed these instructions https://code.google.com/p/opendatakit/wiki/GoogleMapsEngineInstructions exactly and every column except Location is transferring to the vector table. I'm choosing the Locations column as geopoint inside my odk aggrigate when I export. inside my GME, vector table properties, Schema is string for every data column. I hope this will clarify the issue. Thanks.

I've dug around in the logs and tested with some APIs turned off, see
attached for an error when ONLY the Maps Engine API is turned on. When I
have all 4 APIs; Maps Engine, Maps Java v, fusion tables, and drive turned
on, and I publish from my odk aggregate to my maps engine, I dont get any
Error level alerts, just a new record in my vector table, missing
/data/Location.

Also, I've found that the data publishes to my maps engine vector table
(besides the /data/Location) with only the Maps Engine API enabled.

error with only maps engine api enabled.rtf (1.12 KB)

I've asked Nafundi to weigh in on this -- they are the ones that
contributed the Google Map Engine publishing functionality.

··· On Thu, Nov 13, 2014 at 9:26 PM, Terry Miller wrote:

I've dug around in the logs and tested with some APIs turned off, see
attached for an error when ONLY the Maps Engine API is turned on. When I
have all 4 APIs; Maps Engine, Maps Java v, fusion tables, and drive turned
on, and I publish from my odk aggregate to my maps engine, I dont get any
Error level alerts, just a new record in my vector table, missing
/data/Location.

Also, I've found that the data publishes to my maps engine vector table
(besides the /data/Location) with only the Maps Engine API enabled.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

further investigation shows that when I publish to GME from ODK aggregate the latitude is first and the longitude is getting reduced to -90.0, this seems to be preventing it from showing on the map. I added gx_id 22 feature via GME explorer and the point shows on the map as it should. I'm stumped and started looking at the source code.

{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
32.40815339,
-90.0
]
},
"properties": {
"/data/Image": "https://docs.google.com/file/d/0B67_SG-Mc3F6dGFpdk1JSUx3bkk",
"/data/Description": "30 ft high drainage culvert with ponding",
"gx_id": "20"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-99.86030758,
32.40815339
]
},
"properties": {
"/data/Image": "https://docs.google.com/file/d/0B67_SG-Mc3F6dGFpdk1JSUx3bkk",
"/data/Description": "30 ft high drainage culvert with ponding",
"gx_id": "22"
}
},

··· On Monday, November 17, 2014 1:58:26 PM UTC-6, Mitch Sundt wrote: > > I've asked Nafundi to weigh in on this -- they are the ones that > contributed the Google Map Engine publishing functionality. > > > On Thu, Nov 13, 2014 at 9:26 PM, Terry Miller <terrym...@gmail.com > wrote: > >> >> I've dug around in the logs and tested with some APIs turned off, see >> attached for an error when ONLY the Maps Engine API is turned on. When I >> have all 4 APIs; Maps Engine, Maps Java v, fusion tables, and drive turned >> on, and I publish from my odk aggregate to my maps engine, I dont get any >> Error level alerts, just a new record in my vector table, missing >> /data/Location. >> >> Also, I've found that the data publishes to my maps engine vector table >> (besides the /data/Location) with only the Maps Engine API enabled. >> >> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@googlegroups.com >> Options: http://groups.google.com/group/opendatakit?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "ODK Community" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to opendatakit...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com >

Hurray! I found the problem with the source code. The problem is with
hg/src/main/java/org/opendatakit/aggregate/externalservices/GoogleMapsEngine.java

line 310 should be: if(geoPoint.getLatitude() == null || geoPoint.
getLongitude() == null) {

line 314 should be: coord.add(new JsonPrimitive(geoPoint.getLongitude()));
line 315 should be: coord.add(new JsonPrimitive(geoPoint.getLatitude()));

Basically the latitude and longitude are in the wrong oder.

I've made the changes to my GAE test server deployed it and it is working
as it should. I don't know how to commit changes to google code and this is
the first time I've ever de-bugged an open source program so I'm pretty
excited :slight_smile:

BTW, Thank you for this great program. I'm using it to mark up issues with
airfields and I believe it is perfect solution!

··· On Sunday, December 14, 2014 3:48:58 PM UTC-6, Terry Miller wrote: > > further investigation shows that when I publish to GME from ODK aggregate the latitude is first and the longitude is getting reduced to -90.0, this seems to be preventing it from showing on the map. I added gx_id 22 feature via GME explorer and the point shows on the map as it should. I'm stumped and started looking at the source code. > > > { > "type": "FeatureCollection", > "features": [ > { > "type": "Feature", > "geometry": { > "type": "Point", > "coordinates": [ > 32.40815339, > -90.0 > ] > }, > "properties": { > "/data/Image": "https://docs.google.com/file/d/0B67_SG-Mc3F6dGFpdk1JSUx3bkk", > "/data/Description": "30 ft high drainage culvert with ponding", > "gx_id": "20" > } > }, > { > "type": "Feature", > "geometry": { > "type": "Point", > "coordinates": [ > -99.86030758, > 32.40815339 > ] > }, > "properties": { > "/data/Image": "https://docs.google.com/file/d/0B67_SG-Mc3F6dGFpdk1JSUx3bkk", > "/data/Description": "30 ft high drainage culvert with ponding", > "gx_id": "22" > } > }, > > > On Monday, November 17, 2014 1:58:26 PM UTC-6, Mitch Sundt wrote: >> >> I've asked Nafundi to weigh in on this -- they are the ones that >> contributed the Google Map Engine publishing functionality. >> >> >> On Thu, Nov 13, 2014 at 9:26 PM, Terry Miller wrote: >> >>> >>> I've dug around in the logs and tested with some APIs turned off, see >>> attached for an error when ONLY the Maps Engine API is turned on. When I >>> have all 4 APIs; Maps Engine, Maps Java v, fusion tables, and drive turned >>> on, and I publish from my odk aggregate to my maps engine, I dont get any >>> Error level alerts, just a new record in my vector table, missing >>> /data/Location. >>> >>> Also, I've found that the data publishes to my maps engine vector table >>> (besides the /data/Location) with only the Maps Engine API enabled. >>> >>> -- >>> -- >>> Post: opend...@googlegroups.com >>> Unsubscribe: opendatakit...@googlegroups.com >>> Options: http://groups.google.com/group/opendatakit?hl=en >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "ODK Community" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to opendatakit...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Mitch Sundt >> Software Engineer >> University of Washington >> mitche...@gmail.com >> >