A Consultation about the Idea "Simple Features for protobuf and others"

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

A Consultation about the Idea "Simple Features for protobuf and others"

Minway Wang
Hello,
I have a question about the idea "Simple Features for protobuf and others".
The code challenge says I should 'Take the GeoJSON File as input and validate the parsed Geometry.'  But I don't konw how to convert the json segment below to protobuf because it seems that protobuf doesn't support nested list as the coordinates of the polygon. Could you offer some advice?
I'm sorry to disturb you on Saturday morning...(if you are in Germany)
Looking forward to your reply.
Best wishes,
Mingwei Wang
{ "type": "Polygon", 
    "coordinates": [
        [[30, 10], [40, 40], [20, 40], [10, 20], [30, 10]]
    ]
}
--

汪明玮


_______________________________________________
GSoC mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/gsoc
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: A Consultation about the Idea "Simple Features for protobuf and others"

Malith Dhanushka
Hi Minway,

You can use google.protobuf.ListValue[1] proto type to to parse arbitrary JSON data(two-dimensional arrays). This is defined in new struct implementation[2]. Refer following syntax.

syntax = "proto3";
import "google/protobuf/struct.proto";

message TestObj {
google.protobuf.ListValue key =
1;
}


Cheers,
Malith


On Sun, Apr 2, 2017 at 10:47 AM, Minway Wang <[hidden email]> wrote:
Hello,
I have a question about the idea "Simple Features for protobuf and others".
The code challenge says I should 'Take the GeoJSON File as input and validate the parsed Geometry.'  But I don't konw how to convert the json segment below to protobuf because it seems that protobuf doesn't support nested list as the coordinates of the polygon. Could you offer some advice?
I'm sorry to disturb you on Saturday morning...(if you are in Germany)
Looking forward to your reply.
Best wishes,
Mingwei Wang
{ "type": "Polygon", 
    "coordinates": [
        [[30, 10], [40, 40], [20, 40], [10, 20], [30, 10]]
    ]
}
--

汪明玮


_______________________________________________
GSoC mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/gsoc
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines



--
Malith Withange Don
Technical University of Munich,
M.Sc. Informatics 

[hidden email]
        

_______________________________________________
GSoC mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/gsoc
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: A Consultation about the Idea "Simple Features for protobuf and others"

Minway Wang

Thanks a lot!


On Mon, Apr 3, 2017, 09:22 Malith Dhanushka <[hidden email]> wrote:
Hi Minway,

You can use google.protobuf.ListValue[1] proto type to to parse arbitrary JSON data(two-dimensional arrays). This is defined in new struct implementation[2]. Refer following syntax.

syntax = "proto3";
import "google/protobuf/struct.proto";

message TestObj {
google.protobuf.ListValue key =
1;
}


Cheers,
Malith


On Sun, Apr 2, 2017 at 10:47 AM, Minway Wang <[hidden email]> wrote:
Hello,
I have a question about the idea "Simple Features for protobuf and others".
The code challenge says I should 'Take the GeoJSON File as input and validate the parsed Geometry.'  But I don't konw how to convert the json segment below to protobuf because it seems that protobuf doesn't support nested list as the coordinates of the polygon. Could you offer some advice?
I'm sorry to disturb you on Saturday morning...(if you are in Germany)
Looking forward to your reply.
Best wishes,
Mingwei Wang
{ "type": "Polygon", 
    "coordinates": [
        [[30, 10], [40, 40], [20, 40], [10, 20], [30, 10]]
    ]
}
--

汪明玮


_______________________________________________
GSoC mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/gsoc
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines



--
Malith Withange Don
Technical University of Munich,
M.Sc. Informatics 

[hidden email]
        
--

汪明玮


_______________________________________________
GSoC mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/gsoc
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Loading...