//
//  SGFeature.h
//  SimpleGeo
//
//  Created by Seth Fitzsimmons on 11/14/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "SGPoint.h"


@interface SGFeature : NSObject
{
    NSString* featureId;
    SGPoint* geometry;
    NSDictionary* properties;
    NSString* rawBody;
}

@property (readonly) NSString* featureId;
@property (readonly) SGPoint* geometry;
@property (readonly) NSDictionary* properties;
@property (readonly) NSString* rawBody;

+ (SGFeature *)featureWithId:(NSString *)id;
+ (SGFeature *)featureWithId:(NSString *)id
                        data:(NSDictionary *)data;
+ (SGFeature *)featureWithId:(NSString *)id
                        data:(NSDictionary *)data
                     rawBody:(NSString *)rawBody;
+ (SGFeature *)featureWithData:(NSDictionary *)data;
- (id)initWithId:(NSString *)id;
- (id)initWithId:(NSString *)id
            data:(NSDictionary *)data;
- (id)initWithId:(NSString *)id
            data:(NSDictionary *)data
         rawBody:(NSString *)rawBody;

@end

//
//  SGFeature.h
//  SimpleGeo
//
//  Created by Seth Fitzsimmons on 11/14/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "SGPoint.h"


@interface SGFeature : NSObject
{
    NSString* featureId;
    SGPoint* geometry;
    NSDictionary* properties;
    NSString* rawBody;
}

@property (retain,readonly) NSString* featureId;
@property (retain,readonly) SGPoint* geometry;
@property (retain,readonly) NSDictionary* properties;
@property (retain,readonly) NSString* rawBody;

+ (SGFeature *)featureWithId:(NSString *)id;
+ (SGFeature *)featureWithId:(NSString *)id
                        data:(NSDictionary *)data;
+ (SGFeature *)featureWithId:(NSString *)id
                        data:(NSDictionary *)data
                     rawBody:(NSString *)rawBody;
+ (SGFeature *)featureWithData:(NSDictionary *)data;
- (id)initWithId:(NSString *)id;
- (id)initWithId:(NSString *)id
            data:(NSDictionary *)data;
- (id)initWithId:(NSString *)id
            data:(NSDictionary *)data
         rawBody:(NSString *)rawBody;

@end

Revert "No reason for readonly properties to be retained"
Revert "No reason for readonly properties to be retained"

This reverts commit eeed3d87ea740ab73995af2de8f044e3a9a3082d.
